# Maintainer: Filippo Squillace <feel dot sqoox at gmail dot com>
# More details on how to change this file:
# https://wiki.archlinux.org/index.php/PKGBUILD
# https://wiki.archlinux.org/index.php/Creating_packages
# https://wiki.archlinux.org/index.php/Arch_User_Repository#Submitting_packages

pkgname=proot-static
_pkgname=proot
pkgver=5.1.0
pkgrel=1
pkgdesc="chroot, mount --bind, and binfmt_misc without privilege/setup. Static binary only"
arch=('any')
url="https://proot-me.github.io/"
license=('GPL')
groups=()
depends=()
makedepends=()
provides=('proot')
conflicts=('proot' 'proot-bin')
backup=()
options=()
#install=
source=()
md5sums=()
noextract=()

MAIN_REPO=https://s3-eu-west-1.amazonaws.com/junest-repo
PROOT_LINK=${MAIN_REPO}/proot

source_x86_64=("${_pkgname}"::"$PROOT_LINK/proot-x86_64")
source_i686=("${_pkgname}"::"$PROOT_LINK/proot-x86")

source_arm=("${_pkgname}"::"$PROOT_LINK/proot-arm")
source_armv6h=("${_pkgname}"::"$PROOT_LINK/proot-arm")
source_armv7h=("${_pkgname}"::"$PROOT_LINK/proot-arm")
source_aarch64=("${_pkgname}"::"$PROOT_LINK/proot-arm")

md5sums_x86_64=('14080705dd45a6bafa20e909a68072cb')
md5sums_i686=('b1c08236b56d121e04e9e29b197d0eeb')

md5sums_arm=('8218c5f00e77e2e6e04c372ced27c7e7')
md5sums_armv6h=('8218c5f00e77e2e6e04c372ced27c7e7')
md5sums_armv7h=('8218c5f00e77e2e6e04c372ced27c7e7')
md5sums_aarch64=('8218c5f00e77e2e6e04c372ced27c7e7')

package() {
    echo "Installing proot static binaries"
    install -d -m 755 "${pkgdir}/usr/bin/"
    install -m 755 "${srcdir}/${_pkgname}" ${pkgdir}/usr/bin/proot
}

# vim:set ts=2 sw=2 et:
