diff options
author | tmpfile <tmpfile@users.noreply.github.com> | 2017-05-13 12:58:15 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-06 20:09:47 +0000 |
commit | 4cd2056e869921cbccc1b71fccf2f37dc5745480 (patch) | |
tree | fa890eb0498ffeb64f3b902a76d6b73a73a611a5 /main/alsa-utils | |
parent | 7ee68d5209de2b7174bf302f85296773b98508f8 (diff) | |
download | aports-4cd2056e869921cbccc1b71fccf2f37dc5745480.tar.bz2 aports-4cd2056e869921cbccc1b71fccf2f37dc5745480.tar.xz |
main/alsa-utils: modernize abuild
Diffstat (limited to 'main/alsa-utils')
-rw-r--r-- | main/alsa-utils/APKBUILD | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/main/alsa-utils/APKBUILD b/main/alsa-utils/APKBUILD index 0be7e7c239..e372d8329d 100644 --- a/main/alsa-utils/APKBUILD +++ b/main/alsa-utils/APKBUILD @@ -16,32 +16,25 @@ source="ftp://ftp.alsa-project.org/pub/utils/$pkgname-$pkgver.tar.bz2 alsa.confd " -_builddir="$srcdir"/$pkgname-$pkgver +builddir="$srcdir"/$pkgname-$pkgver prepare() { - cd "$_builddir" - update_config_sub || return 1 - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done - return 0 + update_config_sub + default_prepare } build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-xmlto \ - --disable-nls \ - || return 1 - make || return 1 + --disable-nls + make } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install install -D -m755 ../alsa.initd "$pkgdir"/etc/init.d/alsa install -D -m644 ../alsa.confd "$pkgdir"/etc/conf.d/alsa @@ -49,20 +42,12 @@ package() { alsaconf() { depends="alsa-utils bash" - cd "$_builddir" + cd "$builddir" mkdir -p "$subpkgdir"/usr/sbin mv "$pkgdir"/usr/sbin/alsaconf \ "$subpkgdir"/usr/sbin || return 1 } -md5sums="2bf94d3e3410dcc74bb0dae10d46a979 alsa-utils-1.1.3.tar.bz2 -5e65f278b5a77e3ee2821ad955c4cd91 alsaconf.patch -e67a407b22eee4e7c7132cd417ce51cf alsa.initd -415adf8d230c3ac9871b16d8ab176193 alsa.confd" -sha256sums="127217a54eea0f9a49700a2f239a2d4f5384aa094d68df04a8eb80132eb6167c alsa-utils-1.1.3.tar.bz2 -b99468473fe20de4fac3aeae833612837ff1cb576e68674463fe1efd0aed6d19 alsaconf.patch -3d880247df95867f36d5d37949f81e5bd11eb422af29631e9a9489b7cb6bd6bf alsa.initd -a3383d2aa7af1b2725c1167f1f6d5f86505de653fed3c2b8cc8fb3fd5c0d4c5c alsa.confd" sha512sums="a0a00578e7f7ed8441628757048412813a0345f0a3f2e085cda7a881ae3c6e22f7cf1e5119f8200e2e4340e42152b91aa5bdc20646b8422adc74ba00e4c59363 alsa-utils-1.1.3.tar.bz2 bc9f1297574fe4d5bd9baa3f299d68684182f1e6eeb51c862cd6236563516f57a160a00d6607540830aebbb8c4352faf416a981edc878e8a256cbbcc95648614 alsaconf.patch 8a52e6363d5dcfb16e1e607e1af3e46a2148989689e5ab04caf05f84dc68b34cc003b1cf0945ce2c3670cc7f3ef0e40824f689f1efa2d09177c82b13571a7168 alsa.initd |