1 # Maintainer: Daniel Isenmann <daniel@archlinux.org>
2 # Contributor: William Rea <sillywilly@gmail.com>
7 pkgdesc="A shared library to access the contents of an iPod"
10 depends=('gdk-pixbuf2' 'sg3_utils' 'libimobiledevice' 'libplist' 'sqlite')
11 makedepends=('intltool' 'swig' 'docbook-xsl' 'gtk-sharp-2' 'gtk-doc')
12 optdepends=('gtk-sharp-2: Mono bindings')
13 url="http://www.gtkpod.org/libgpod/"
14 source=(https://downloads.sourceforge.net/sourceforge/gtkpod/${pkgname}-${pkgver}.tar.bz2
15 libgpod-0.8.2-pkgconfig_overlinking.patch
17 0001-323-Segmentation-fault-when-opening-ipod.patch
19 options=('!emptydirs')
20 sha256sums=('638a7959d04e95f1e62abad02bd33702e4e8dfef98485ac7d9d50395c37e955d'
21 '02daa2b46d0cfdee14c9d96eabf903ba4638694e669c5cb0ec462076837ac2ff'
22 '86f7054dc53ee2aa756c98dc893af6718bbeb6361a0785a5c93a5592b8cc8cdd'
23 'b181131ee5b42673074f8217155b4f147623cc63dd382ee4bfa2cb81cd281b20'
24 '35786054ebbfab1d247d51e7c7dc7618f8ed9fc17ad3c8b590d89190728452ea')
28 patch -Np1 -i ../libgpod-0.8.2-pkgconfig_overlinking.patch
29 patch -Np1 -i ../libgpod-fixswig.patch
30 patch -Np1 -i ../0001-323-Segmentation-fault-when-opening-ipod.patch
31 patch -Np0 -i ../libgpod-udev.patch
32 sed -e 's|libplist >= 1.0|libplist-2.0 >= 2.2|' -i configure.ac # support libplist 2.2
38 MCS=/usr/bin/mcs ./configure --prefix=/usr --with-udev-dir=/usr/lib/udev --enable-udev --with-python=no
40 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
45 make PREFIX=/usr DESTDIR="${pkgdir}" install