aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gnome-disk-utility/APKBUILD
blob: a2428887c7703bcc938d20eb950b19d9047ca68f (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnome-disk-utility
pkgver=3.12.1
pkgrel=1
pkgdesc="GNOME libraries and applications for dealing with storage devices"
url="https://www.gnome.org/"
arch=""
#arch="all !s390x"
license="GPL"
depends=""
makedepends="gnome-doc-utils intltool dbus-glib-dev libunique-dev avahi-dev
	udisks2-dev libnotify-dev hicolor-icon-theme libatasmart-dev
	rarian-dev libxslt libsecret-dev libpwquality-dev"
install=
subpackages="$pkgname-dev $pkgname-libs $pkgname-ui-libs:uilibs $pkgname-lang"
source="https://download.gnome.org/sources/gnome-disk-utility/${pkgver%.*}/gnome-disk-utility-$pkgver.tar.xz"
#	fix-freeze.patch
#	exp2.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
}

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/
}

sha512sums="c1feb452955882beb64635e75594bc30acdc8fd4e102107b956e18a5bdea1b802b53464c4c4beef94eb22ad3ad7471b7bff17b566da6438247e5b05146e82ff3  gnome-disk-utility-3.12.1.tar.xz"