summaryrefslogtreecommitdiffstats
path: root/main/gnome-disk-utility/APKBUILD
blob: 636eace772bece69a0d0d1259940396016390c54 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnome-disk-utility
pkgver=2.32.0
pkgrel=0
pkgdesc="GNOME libraries and applications for dealing with storage devices"
url="http://www.gnome.org"
arch="all"
license="GPL"
depends=""
makedepends="gnome-doc-utils intltool dbus-glib-dev libunique-dev avahi-dev
	udisks-dev libnotify-dev hicolor-icon-theme libatasmart-dev
	rarian-dev libxslt"
install=
subpackages="$pkgname-dev $pkgname-libs $pkgname-ui-libs:uilibs"
source="http://ftp.gnome.org/pub/GNOME/sources/gnome-disk-utility/${pkgver%.*}/gnome-disk-utility-$pkgver.tar.bz2
	fix-freeze.patch
	exp2.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	patch -Np1 -i "$srcdir/fix-freeze.patch"
	patch -Np1 -i "$srcdir/exp2.patch"
}

build () 
{ 
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--libexecdir=/usr/lib/gnome-disk-utility \
		--disable-scrollkeeper \
		--disable-nautilus \
		--disable-gtk-doc
	make
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

libs() {
	pkgdesc="Shared libraries used by Palimpsest"
	mkdir -p "$subpkgdir"/usr/lib \
		"$subpkgdir"/usr/share
	mv "$pkgdir"/usr/lib/libgdu.so.* "$subpkgdir"/usr/lib/
	mv "$pkgdir"/usr/share/icons "$subpkgdir"/usr/share/
}

uilibs() {
	pkgdesc="Shared libraries used by Palimpsest"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libgdu-gtk.so.* "$subpkgdir"/usr/lib/
}

md5sums="f0366c8baebca0404d190b2d78f3582d  gnome-disk-utility-2.32.0.tar.bz2
c0161b09b620ef9c3975db400518eb1f  fix-freeze.patch
ac7d749bb6fa2e31bffb1f47822bc22b  exp2.patch"