summaryrefslogtreecommitdiffstats
path: root/main/gnome-disk-utility/APKBUILD
blob: 6777b0d1a9696db923e85949705b941d70b941ab (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
63
64
65
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnome-disk-utility
pkgver=2.32.1
pkgrel=1
pkgdesc="GNOME libraries and applications for dealing with storage devices"
url="http://www.gnome.org"
arch=""
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 $pkgname-lang"
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"
	update_config_sub || return 1
	patch -Np1 -i "$srcdir/fix-freeze.patch"
	patch -Np1 -i "$srcdir/exp2.patch"
}

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" -name '*.la' -delete
}

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="cb04b69ded14c1db82133979d8240ea6  gnome-disk-utility-2.32.1.tar.bz2
c0161b09b620ef9c3975db400518eb1f  fix-freeze.patch
40b82bb896ae40352498ed3dadd2f3d6  exp2.patch"