diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-22 15:24:04 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-25 07:11:22 +0000 |
commit | c16d41457f4a00a357e7c03b35ecfaa03ce20cde (patch) | |
tree | 2d25d030de83c19dbfd67620d989eef46c1bb364 /community/mate-terminal | |
parent | 8031c8f9edfde04f3ea46b6d7a8a6a4e23634d9c (diff) | |
download | aports-c16d41457f4a00a357e7c03b35ecfaa03ce20cde.tar.bz2 aports-c16d41457f4a00a357e7c03b35ecfaa03ce20cde.tar.xz |
community/mate-terminal: added check(), modernize APKBUILD
Diffstat (limited to 'community/mate-terminal')
-rw-r--r-- | community/mate-terminal/APKBUILD | 36 |
1 files changed, 14 insertions, 22 deletions
diff --git a/community/mate-terminal/APKBUILD b/community/mate-terminal/APKBUILD index 7acf9385b5..087d122c05 100644 --- a/community/mate-terminal/APKBUILD +++ b/community/mate-terminal/APKBUILD @@ -2,44 +2,36 @@ # Maintainer: Alan Lacerda <alacerda@alpinelinux.org> pkgname=mate-terminal pkgver=1.18.1 -pkgrel=0 +pkgrel=1 pkgdesc="MATE terminal emulator" url="https://github.com/mate-desktop/mate-terminal" arch="all" license="GPL2" depends="mate-common yelp-tools mate-desktop" -depends_dev="" -makedepends="$depends_dev libtool intltool dconf-dev libsm-dev itstool vte3-dev - mate-desktop-dev libxml2-utils" -install="" +makedepends="libtool intltool dconf-dev libsm-dev itstool vte3-dev + mate-desktop-dev libxml2-utils gtk+3.0-dev" subpackages="$pkgname-doc $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" ./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="3b102c683137951d425c5c4f177e1498be037cabb9483bd89fea61c1c03e9a5d481a5aa9418e92f3007ac64f7ed3bf298109ba9564f741634c4b5dad94ddddf3 mate-terminal-1.18.1.tar.xz" |