diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-12 13:07:14 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-12 13:07:14 +0000 |
commit | 7f619855000f5de539987d0628076b549cedf798 (patch) | |
tree | db5a5aad50bb9c054f4d3e4e0d390a8bfa75ac14 /main/gtk-xfce-engine/APKBUILD | |
parent | 5da044646d4e5f189ebb85f851314e2f3415a104 (diff) | |
download | aports-7f619855000f5de539987d0628076b549cedf798.tar.bz2 aports-7f619855000f5de539987d0628076b549cedf798.tar.xz |
main/gtk-xfce-engine: upgrade to 3.0.1 and add gtk3 support
Diffstat (limited to 'main/gtk-xfce-engine/APKBUILD')
-rw-r--r-- | main/gtk-xfce-engine/APKBUILD | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/main/gtk-xfce-engine/APKBUILD b/main/gtk-xfce-engine/APKBUILD index 26e9079e3d..41567ee6a1 100644 --- a/main/gtk-xfce-engine/APKBUILD +++ b/main/gtk-xfce-engine/APKBUILD @@ -1,15 +1,16 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=gtk-xfce-engine -pkgver=3.0.0 -pkgrel=1 -pkgdesc="A port of Xfce engine to GTK+-2.0" +pkgver=3.0.1 +pkgrel=0 +pkgdesc="Xfce theme engine" url="http://www.xfce.org/" arch="all" license="GPL-2" depends= -makedepends="pkgconfig gtk+-dev libiconv-dev gettext-dev expat-dev" +makedepends="gtk+2.0-dev gtk+3.0-dev" source="http://archive.xfce.org/src/xfce/gtk-xfce-engine/${pkgver%.*}/gtk-xfce-engine-$pkgver.tar.bz2 - memleak.patch" + " +subpackages="gtk2-xfce-engine:_gtk2 gtk3-xfce-engine:_gtk3" _builddir="$srcdir"/$pkgname-$pkgver prepare() { @@ -41,5 +42,21 @@ package() { make DESTDIR="$pkgdir" install || return 1 find "$pkgdir"/ -name '*.la' -delete } -md5sums="c02dec13f063c285de44d5388902822a gtk-xfce-engine-3.0.0.tar.bz2 -cbb977c1160d0a07c408a18e748d7b68 memleak.patch" + +_split() { + local _ver=${1%.*} + pkgdesc="$pkgdesc - ${_ver/-/ }" + install_if="$pkgname=$pkgver-r$pkgrel ${1/-/+}" + cd "$pkgdir" + for dir in usr/lib/$1 usr/share/themes/*/$1; do + mkdir -p "$subpkgdir"/${dir%/*} || return 1 + mv $dir "$subpkgdir"/${dir%/*} || return 1 + done +} + +_gtk2() { _split gtk-2.0; } +_gtk3() { _split gtk-3.0; } + +md5sums="174e774d0debb052ec457640275f065d gtk-xfce-engine-3.0.1.tar.bz2" +sha256sums="eb03cf81da1a91e426a2141c092ed7a1634cab29ea2f3546480e901290a7a06d gtk-xfce-engine-3.0.1.tar.bz2" +sha512sums="0cd701cc485fcf7e112221c550f58078ca63773b0dd8c22d052b55564ad7954c721398735fbcf85b72f2b56ac5c65c1648522c1238fe97c274093d90f80af058 gtk-xfce-engine-3.0.1.tar.bz2" |