diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-04-04 06:32:47 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-04-04 06:42:12 +0000 |
commit | 8219ffa45a7c6e31329c971b5e9bec666a3edff3 (patch) | |
tree | ea748c845585aece62849bbcca529fd5f9c95305 /main/makekit | |
parent | 7eda8fd8ec0b6880ec5db2200f0d2c519425b41f (diff) | |
download | aports-8219ffa45a7c6e31329c971b5e9bec666a3edff3.tar.bz2 aports-8219ffa45a7c6e31329c971b5e9bec666a3edff3.tar.xz |
main/makekit: upgrade to 0.2, modernize APKBUILD
Diffstat (limited to 'main/makekit')
-rw-r--r-- | main/makekit/APKBUILD | 37 |
1 files changed, 13 insertions, 24 deletions
diff --git a/main/makekit/APKBUILD b/main/makekit/APKBUILD index 9b843b142f..87610d1708 100644 --- a/main/makekit/APKBUILD +++ b/main/makekit/APKBUILD @@ -1,33 +1,25 @@ # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=makekit -pkgver=0.1 +pkgver=0.2 pkgrel=0 pkgdesc="modular build system for POSIX environments" url="http://mkbuild.sourceforge.net/" arch="x86 x86_64" license="BSD" -depends= -depends_dev= -makedepends="$depends_dev" -install="" -subpackages= +makedepends="coreutils" +options="!check" source="makekit-$pkgver.tar.gz::https://github.com/bkoropoff/makekit/archive/release-$pkgver.tar.gz" +builddir="$srcdir"/makekit-release-$pkgver/build -_builddir="$srcdir"/makekit-release-$pkgver/build 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 + mkdir -p "$builddir" + cd "$builddir" + default_prepare } build() { - mkdir -p "$_builddir" - cd "$_builddir" + cd "$builddir" ../configure \ --build=$CBUILD \ --host=$CHOST \ @@ -35,16 +27,13 @@ build() { --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --localstatedir=/var \ - || return 1 - make || return 1 + --localstatedir=/var + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install } -md5sums="e74d0a97143ddf854ee0a74c69325f07 makekit-0.1.tar.gz" -sha256sums="bf433cedb1d26f602aa81ea5407a56c4c2dd1367d8124ca8c08c7097da0313cd makekit-0.1.tar.gz" -sha512sums="dfb16d7349c208f26f3c0ed380538479ae65e75b67cbf0c8faa13d0c8824f6efe8401ab80f87c0398c3e08acce0f08d2e547e2c90b3fe3874ee830fbab6f1ed8 makekit-0.1.tar.gz" +sha512sums="7746141b253953212d621f9c4a8376b5c6bd3ac15d1809b184013a27c51006be2e2ee5ef391509486ae89b7fdca81863f8c916538bcb98e435ebf0ff1976f1ce makekit-0.2.tar.gz" |