aboutsummaryrefslogtreecommitdiffstats
path: root/main/su-exec/APKBUILD
blob: c4cfbe74ceadc90dd5c33946d2034ea6557d09b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=su-exec
pkgver=0.2
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="675206c03074a1b998719fae4d28812f  su-exec-0.2.tar.gz"
sha256sums="ec4acbd8cde6ceeb2be67eda1f46c709758af6db35cacbcde41baac349855e25  su-exec-0.2.tar.gz"
sha512sums="68155a06c716b362aee1214f22cd325b3e934c05b653d3b084a720458fb04207c0681d218b72adfd5ae8fab0262f7ab90e49eb2e218d1b0d7d7af7911715d4e1  su-exec-0.2.tar.gz"