diff options
Diffstat (limited to 'main/s6-portable-utils/APKBUILD')
-rw-r--r-- | main/s6-portable-utils/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/main/s6-portable-utils/APKBUILD b/main/s6-portable-utils/APKBUILD new file mode 100644 index 0000000000..fd00ee2c51 --- /dev/null +++ b/main/s6-portable-utils/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: John Regan <john@jrjrtech.com> +# Maintainer: John Regan <john@jrjrtech.com> +pkgname=s6-portable-utils +pkgver=2.0.5.2 +pkgrel=0 +pkgdesc="skarnet.org's tiny portable generic utilities" +url="http://skarnet.org/software/$pkgname/" +arch="all" +license="ISC" +depends="skalibs" +depends_dev="skalibs-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev" +source="http://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz" + +_builddir="$srcdir/$pkgname-$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" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --enable-shared \ + --enable-static \ + --disable-allstatic \ + --prefix=/usr \ + --libdir=/usr/lib \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="bda96373eda48b61c6283439a7619a36 s6-portable-utils-2.0.5.2.tar.gz" +sha256sums="f54b52628efb1406f05a774fe67793a1f0cd18447e8160452579a9603edead34 s6-portable-utils-2.0.5.2.tar.gz" +sha512sums="6d07ae6c1f4ccc49cd40827dce15d1578f91fc89d68ab2267dfe2946422d66b044989f2e7885a2aa9761fe9e3ca1b34c7f2c228526fec204c13e77f1e3dcd4fc s6-portable-utils-2.0.5.2.tar.gz" |