aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libgpod/APKBUILD
blob: af1f214f68b982d78990a0443872bc0871f5b0fe (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libgpod
pkgver=0.8.3
pkgrel=1
pkgdesc="A shared library to access the contents of an iPod"
url="http://www.gtkpod.org/libgpod"
arch="all"
license="LGPL"
makedepends="automake autoconf libtool intltool libimobiledevice-dev libplist-dev 
	swig py-gobject-dev mutagen sg3_utils-dev gdk-pixbuf-dev
 	glib-dev sqlite-dev	gobject-introspection-dev libxml2-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://downloads.sourceforge.net/project/gtkpod/$pkgname/$pkgname-0.8/$pkgname-$pkgver.tar.bz2
	0001-323-Segmentation-fault-when-opening-ipod.patch
	0002-Fix-spelling-errors-in-comments-and-strings-using-co.patch
	0003-Fixed-PList-deprecation.patch
	libgpod-0.8.2-pkgconfig_overlinking.patch"
builddir="$srcdir/$pkgname-$pkgver"

check() {
	cd "$builddir"
	make check
}

build() {
	cd "$builddir"
	MCS=/usr/bin/mcs ./configure \
		--prefix=/usr \
		--with-udev-dir=/lib/udev \
		--enable-udev \
		--with-python=/usr/bin/python2
	make PREFIX=/usr
	sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool	
}

package() {
	cd "$builddir"
	make PREFIX=/usr DESTDIR="${pkgdir}" install
}

sha512sums="e39f22054c2d2bdf5fc764aa1f692de17a1a06c7c7e9c60883d126b216dacca7840bf818e7e7e039218fe2a64c0920ba96d8cbbe310e11c1c4e68b82e7cbbd8e  libgpod-0.8.3.tar.bz2
d1a813a45230ca716e0c6ed5497d68089762ce5b4cac9462f1959083fdf40bedbf7449a55d63170800d74372921fad02a9d5a3146e9f8ed652ffd58238360b49  0001-323-Segmentation-fault-when-opening-ipod.patch
f95d53e616763e4e620862fb2e1abc2fcec29951c2047b7f08bfbee69ce68661772f499f90f87d81a2707583b3d8017d11dcaf75a9028f50b7c3260a9768c285  0002-Fix-spelling-errors-in-comments-and-strings-using-co.patch
163e33c3e727240561021dd8a4d921bad4724845db00d1d87c963a9e8619dbfda90de9d42944bf33f5b3479b00b3908e550a831489b12c7d4f0e83cdaae697ad  0003-Fixed-PList-deprecation.patch
c8ebcc18ba7b44aef8fada3f9fea88fdaaf6bae12cf809b08f98e85ab6396ae032bfd7706809cd266be67c694749d4364a9cc591eb750478e095cbbcbe061419  libgpod-0.8.2-pkgconfig_overlinking.patch"