aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnome-disk-utility/APKBUILD
blob: f4a7a293059dc26fc2e550b4cf8a9314403f4cb5 (plain) (blame)
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
66
67
68
69
70
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnome-disk-utility
pkgver=3.16.2
pkgrel=0
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.xz
	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
}

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="704725427be3e985c33fb825625ab94c  gnome-disk-utility-3.16.2.tar.xz
c0161b09b620ef9c3975db400518eb1f  fix-freeze.patch
40b82bb896ae40352498ed3dadd2f3d6  exp2.patch"
sha256sums="4a495563a0142d2a64d9f573e5333a82d6c3c94ab5c8cd9b1878bfa36ae15353  gnome-disk-utility-3.16.2.tar.xz
818b70360978968457d2c50738347c6726ed8d0c007eb57074881a7e33652526  fix-freeze.patch
4be207e2c2a6773e3a2f5462929fe2e78352739fc4c5b7d1ee0998583db25710  exp2.patch"
sha512sums="228187c1f3354c3a11dda3d4b85abed3e54bb7e5f105971f5d39f72fa52bcc9b44344c27148c604b2a87ed83942724187af90527e48acb9e9bc888922c34a53b  gnome-disk-utility-3.16.2.tar.xz
ba1ed4e5a318938545660f96157c35f901975555434db4f8a539b329b6c3489e84b0f7d5225acc38b30503049419ef79ccffcc0db59a40852cd28da6d17a0bd3  fix-freeze.patch
e37da782de23287513956b32f6ea36f2ffb6fb7c931479e03171f494212720b34fa780c2d31b0080bb61d5031ee7ca086d366ca852b43ad8fcce92ed22b55b6b  exp2.patch"