blob: f21241f3409159c080ed3410ad46a833ae537e93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gtk-xfce-engine
pkgver=3.2.0
pkgrel=0
pkgdesc="Xfce theme engine"
url="http://www.xfce.org/"
arch="all"
license="GPL2"
depends=
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
"
subpackages="gtk2-xfce-engine:_gtk2 gtk3-xfce-engine:_gtk3"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib \
--localstatedir=/var \
--disable-static \
--enable-gtk3 \
--enable-gtk2 \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
_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="363d6c16a48a00e26d45c45c2e1fd739 gtk-xfce-engine-3.2.0.tar.bz2"
sha256sums="875c9c3bda96faf050a2224649cc42129ffb662c4de33add8c0fd1fb860b47ed gtk-xfce-engine-3.2.0.tar.bz2"
sha512sums="c965e597c1b4aa04f3b474f3c4cea249aa6e753be697d5d3d7a19184adca650fc084f39acbd357f53eaf4180d96d5d3499866367e221ae445de4864fc9487012 gtk-xfce-engine-3.2.0.tar.bz2"
|