diff options
author | tmpfile <tmpfile@users.noreply.github.com> | 2017-05-14 14:48:43 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-09 15:05:47 +0000 |
commit | 312fdbda3fe84c751ac3747684fb3ec7f8788344 (patch) | |
tree | 1f62f3490f3c98ed76945937095fc81e0bb249fa /community/sbc | |
parent | 26d5dcca6f80796af2d340fb88bd601be3302460 (diff) | |
download | aports-312fdbda3fe84c751ac3747684fb3ec7f8788344.tar.bz2 aports-312fdbda3fe84c751ac3747684fb3ec7f8788344.tar.xz |
community/sbc: modernize abuild
Diffstat (limited to 'community/sbc')
-rw-r--r-- | community/sbc/APKBUILD | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/community/sbc/APKBUILD b/community/sbc/APKBUILD index f0207d510b..758d896ed3 100644 --- a/community/sbc/APKBUILD +++ b/community/sbc/APKBUILD @@ -10,21 +10,14 @@ license="LGPL" depends="" depends_dev="libsndfile-dev" makedepends="$depends_dev linux-headers" -install="" subpackages="$pkgname-dev $pkgname-utils" source="http://www.kernel.org/pub/linux/bluetooth/sbc-$pkgver.tar.xz" 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 - update_config_sub || return 1 + default_prepare + update_config_sub } build() { @@ -36,23 +29,20 @@ 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 + make DESTDIR="$pkgdir" install } utils() { pkgdesc="sbc utilities" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/bin \ - "$subpkgdir"/usr/ || return 1 + "$subpkgdir"/usr/ } -md5sums="2d8b7841f2c11ab287718d562f2b981c sbc-1.3.tar.xz" -sha256sums="e61022cf576f14190241e7071753fdacdce5d1dea89ffd704110fc50be689309 sbc-1.3.tar.xz" sha512sums="c11cb1ede8abdb226d404ce34307d217b716b91cbe550ed90cb5387b062b7b97a6b7a81371de6f462d8c1429cb3299869a1bda347fa175e9d81cfa2bc2056c8b sbc-1.3.tar.xz" |