diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-22 14:59:26 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-25 07:11:21 +0000 |
commit | d297952ea50821d964bb120dc5813786a5cfcf75 (patch) | |
tree | 827cffbacedfb9fb2d4629b59b3840615a66effe | |
parent | d4258e3147482310e38d5bb74bcde220640432d1 (diff) | |
download | aports-d297952ea50821d964bb120dc5813786a5cfcf75.tar.bz2 aports-d297952ea50821d964bb120dc5813786a5cfcf75.tar.xz |
community/mate-icon-theme: added check(), modernize APKBUILD
-rw-r--r-- | community/mate-icon-theme/APKBUILD | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/community/mate-icon-theme/APKBUILD b/community/mate-icon-theme/APKBUILD index e5f13518d6..badd4d8778 100644 --- a/community/mate-icon-theme/APKBUILD +++ b/community/mate-icon-theme/APKBUILD @@ -2,43 +2,35 @@ # Maintainer: Alan Lacerda <alacerda@alpinelinux.org> pkgname=mate-icon-theme pkgver=1.18.2 -pkgrel=0 +pkgrel=1 pkgdesc="MATE desktop icons" url="https://github.com/mate-desktop/mate-icon-theme" arch="noarch" license="GPL2" depends="mate-common" -depends_dev="" makedepends="icon-naming-utils intltool" -install="" subpackages="$pkgname-lang" source="http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$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 -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" DATADIRNAME=share ./configure \ --build=$CBUILD \ --host=$CHOST \ --sysconfdir=/etc \ - --prefix=/usr \ - || return 1 - make || return 1 + --prefix=/usr + make +} + +check() { + cd "$builddir" + make check } package() { - cd "$_builddir" - make DESTDIR="${pkgdir}" install || return 1 + cd "$builddir" + make DESTDIR="${pkgdir}" install } sha512sums="6e6d60b7eeba474d4d9d4d069f9fa4f8098cf54aa8367c02b05c5ec556ccd5310d791183ec961e9227867b37ec7e27b8ac8aadfee1f1446b34cee1985b4ef1fb mate-icon-theme-1.18.2.tar.xz" |