diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-09-17 17:19:45 -0500 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-10-09 16:03:52 +0000 |
commit | e579a3a1114a60200e284737377d840816ee3ee3 (patch) | |
tree | 8b6da0f28e818651e20c090f3ea79361f2286ba2 /main/libxfce4ui | |
parent | b931a86da19a56cb40e96c8f725ebec2b80d8930 (diff) | |
download | aports-e579a3a1114a60200e284737377d840816ee3ee3.tar.bz2 aports-e579a3a1114a60200e284737377d840816ee3ee3.tar.xz |
main/libxfce4ui: modernise, add tests, fix deps
Diffstat (limited to 'main/libxfce4ui')
-rw-r--r-- | main/libxfce4ui/APKBUILD | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/main/libxfce4ui/APKBUILD b/main/libxfce4ui/APKBUILD index 5521b38490..f87dc4b53c 100644 --- a/main/libxfce4ui/APKBUILD +++ b/main/libxfce4ui/APKBUILD @@ -2,26 +2,20 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=libxfce4ui pkgver=4.12.1 -pkgrel=1 +pkgrel=2 pkgdesc="Widgets library for the Xfce desktop environment" url="http://www.xfce.org/" arch="all" license="GPL2" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-gtk3" depends= -depends_dev="gtk+2.0-dev gtk+3.0-dev libxfce4util-dev xfconf-dev - startup-notification-dev" -makedepends="$depends_dev glade3-dev gtk-doc" +depends_dev="startup-notification-dev" +makedepends="$depends_dev gtk+2.0-dev gtk+3.0-dev libxfce4util-dev xfconf-dev + glade3-dev gtk-doc" source="http://archive.xfce.org/src/xfce/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2" -_builddir="$srcdir/$pkgname-$pkgver" - -prepare() { - cd "$_builddir" -} - build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -32,21 +26,25 @@ build() { --enable-gladeui \ --with-vendor-info="Alpine Linux" \ --disable-static \ - --enable-gtk-doc \ - || return 1 - make || return 1 + --enable-gtk-doc + make +} + +check() { + cd "$builddir" + make check } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install } dev() { default_dev mkdir -p "$subpkgdir"/usr/lib "$subpkgdir"/usr/share - mv "$pkgdir"/usr/lib/glade3 "$subpkgdir"/usr/lib/ || return 1 - mv "$pkgdir"/usr/share/glade3 "$subpkgdir"/usr/share/ || return 1 + mv "$pkgdir"/usr/lib/glade3 "$subpkgdir"/usr/lib/ + mv "$pkgdir"/usr/share/glade3 "$subpkgdir"/usr/share/ } gtk3() { |