# Maintainer: Natanael Copa pkgname=su-exec pkgver=0.1 pkgrel=0 pkgdesc="switch user and group id, setgroups and exec" url="https://github.com/ncopa/su-exec" arch="all" license="MIT" depends="" depends_dev="" makedepends="$depends_dev" install="" subpackages="" source="su-exec-$pkgver.tar.gz::https://github.com/ncopa/su-exec/archive/v$pkgver.tar.gz" _builddir="$srcdir"/su-exec-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" make || return 1 } package() { cd "$_builddir" install -D su-exec "$pkgdir"/sbin/su-exec || return 1 } md5sums="e11784db3e41f769b805d0f284686d72 su-exec-0.1.tar.gz" sha256sums="dfc18f5ef97d7dfe859643ff5c3a026b368b99a37a3095cb79364f906be922c4 su-exec-0.1.tar.gz" sha512sums="a67dd4044097c0dead914298358657211a3425353d0f8dd4960a9fb734e6d6499bc0e829a1bb3a21ac6366f199f481413092dfbc9a08b158bf40e3f06df63e49 su-exec-0.1.tar.gz"