APKBUILD 2.16 KB
Newer Older
Ariadne Conill's avatar
Ariadne Conill committed
1
# Contributor: William Pitcock <nenolod@dereferenced.org>
Natanael Copa's avatar
Natanael Copa committed
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Ariadne Conill's avatar
Ariadne Conill committed
3 4
pkgname=gnome-vfs
pkgver=2.24.4
5
pkgrel=5
Ariadne Conill's avatar
Ariadne Conill committed
6 7 8 9 10 11 12 13
pkgdesc="GNOME virtual filesystem subsystem"
url="http://projects.gnome.org/gnome-vfs"
arch="all"
license="LGPL"
depends="gnome-mime-data"
depends_dev="gconf-dev libxml2-dev dbus-glib-dev gamin-dev"
makedepends="$depends_dev intltool"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
14
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
15
source="ftp://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2
16 17
	disable-deprecated.patch
	fix-resolv-no-address.patch"
Ariadne Conill's avatar
Ariadne Conill committed
18 19 20 21 22

_builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() {
	local i
	cd "$_builddir"
23
	update_config_sub || return 1
Ariadne Conill's avatar
Ariadne Conill committed
24 25 26 27 28 29 30 31 32
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
33 34 35 36
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Ariadne Conill's avatar
Ariadne Conill committed
37
		--sysconfdir=/etc \
38
		|| return 1
Ariadne Conill's avatar
Ariadne Conill committed
39 40 41 42 43 44 45 46
	make || return 1
}

package() {
	cd "$_builddir"

	export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
	make DESTDIR="$pkgdir" install || return 1
Natanael Copa's avatar
Natanael Copa committed
47 48
	rm "$pkgdir"/usr/lib/*.la \
		"$pkgdir"/usr/lib/gnome-vfs*/modules/*.la
Ariadne Conill's avatar
Ariadne Conill committed
49 50
}

51
md5sums="a05fab03eeef10a47dd156b758982f2e  gnome-vfs-2.24.4.tar.bz2
52 53
d3a82207004680d4543c6136d046f05f  disable-deprecated.patch
d4b382c899793cfab72e8b6745b95cb3  fix-resolv-no-address.patch"
54
sha256sums="62de64b5b804eb04104ff98fcd6a8b7276d510a49fbd9c0feb568f8996444faa  gnome-vfs-2.24.4.tar.bz2
55 56
1f4fa69a4f52be71cdbdb7319ec44089d989f5254e4edfff992c30b572d146fb  disable-deprecated.patch
4535a7f3747fa28b184639dc13a712d20db626f60ced097496c808c8d3992919  fix-resolv-no-address.patch"
57
sha512sums="db4e49f5356647667c4d40c7ce5c299c934cb41069b2086fb89c4e87b2202b5009616d65c1dafeb93e37033a5a68965342c2b18d87b8a3265c4347dec5128581  gnome-vfs-2.24.4.tar.bz2
58 59
aeee9b12f4aa2bea3a8cecf3309a5715341dd8632695b74b191a12ea3d1c6841da8c214245018020b356710bed6b628e031aa5a51959fea2c45891f35ef078f3  disable-deprecated.patch
2a12fbee53c9b1bb713a868f845dee9591eaf9cfa1fa0ba504966b0cdfaf9d6be7c77936c25d2a698f637fac8fe4a35c34d4350beaed53262ed92b3e85f47613  fix-resolv-no-address.patch"