diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-22 13:09:54 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-25 07:11:21 +0000 |
commit | 862bbbe07066191bfb291db35cc2bd342931c14f (patch) | |
tree | bc133eab08b5d04480293c250b87cd08eb2be498 /community/libmatemixer/APKBUILD | |
parent | 7707e64f3addbd4a9e84e139b338d03fb7693cb7 (diff) | |
download | aports-862bbbe07066191bfb291db35cc2bd342931c14f.tar.bz2 aports-862bbbe07066191bfb291db35cc2bd342931c14f.tar.xz |
community/libmatemixer: modernized APKBUILD, added check()
Diffstat (limited to 'community/libmatemixer/APKBUILD')
-rw-r--r-- | community/libmatemixer/APKBUILD | 44 |
1 files changed, 18 insertions, 26 deletions
diff --git a/community/libmatemixer/APKBUILD b/community/libmatemixer/APKBUILD index ea0dd4c496..45cd786893 100644 --- a/community/libmatemixer/APKBUILD +++ b/community/libmatemixer/APKBUILD @@ -2,44 +2,36 @@ # Maintainer: Alan Lacerda <alacerda@alpinelinux.org> pkgname=libmatemixer pkgver=1.18.0 -pkgrel=0 +pkgrel=1 pkgdesc="A mixer library for MATE desktop" url="http://git.mate-desktop.org/libmatemixer/" arch="all" license="GPL" -depends="" -depends_dev="" -makedepends="$depends_dev intltool glib-dev alsa-lib-dev" -install="" +makedepends="intltool glib-dev alsa-lib-dev" subpackages="$pkgname-doc $pkgname-dev $pkgname-lang" -source="http://pub.mate-desktop.org/releases/${pkgver%.*}/libmatemixer-$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 -} +source="http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz" +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" ./configure \ - --build=$CBUILD \ - --host=$CHOST \ + --build=$CBUILD \ + --host=$CHOST \ --sysconfdir=/etc \ - --prefix=/usr \ - --enable-alsa \ - || return 1 - make || return 1 + --enable-static=no \ + --prefix=/usr \ + --enable-alsa + make +} + +check() { + cd "$builddir" + make check } package() { - cd "$_builddir" - make DESTDIR="${pkgdir}" install || return 1 + cd "$builddir" + make DESTDIR="${pkgdir}" install } sha512sums="254d1ff74f036d813f9ec2b983b86a730fec0d1f2009e7d22a9d779e509aec92409225cec5ff1f7c747c468c5e40affaa67130df4bb7087d5ee61036359b4407 libmatemixer-1.18.0.tar.xz" |