summaryrefslogtreecommitdiffstats
path: root/main/sudo/APKBUILD
blob: 34d47d1e3c71749570a77617e4758fff6c495a86 (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
40
41
42
43
44
45
46
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sudo
pkgver=1.8.3_p2
if [ "${pkgver%_*}" != "$pkgver" ]; then
	_realver=${pkgver%_*}${pkgver#*_}
else
	_realver=$pkgver
fi
pkgrel=0
pkgdesc="Give certain users the ability to run some commands as root"
url="http://www.sudo.ws/sudo/"
arch="all"
license='custom ISC'
makedepends=
depends=
subpackages="$pkgname-doc $pkgname-lang"
source="ftp://ftp.sudo.ws/pub/sudo/$pkgname-$_realver.tar.gz
	libcrypt.patch"

_builddir="$srcdir"/$pkgname-$_realver
prepare() {
	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"
	./configure --prefix=/usr \
		--with-env-editor \
		--without-pam \
		--without-skey \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install || return 1
}

md5sums="6d4282a1530c541f7900fa8dfcf2a882  sudo-1.8.3p2.tar.gz
429d9613091f1f3f19ce8def5b3032b3  libcrypt.patch"