1 # Contributor: Daniel Isenmann <daniel@archlinux.org>
2 # Contributor: William Rea <sillywilly@gmail.com>
7 pkgdesc="A shared library to access the contents of an iPod"
8 url="http://www.gtkpod.org/libgpod/"
27 https://downloads.sourceforge.net/sourceforge/gtkpod/${pkgname}-${pkgver}.tar.bz2
28 0001-323-Segmentation-fault-when-opening-ipod.patch
29 libgpod-0.8.2-pkgconfig_overlinking.patch
30 libgpod-0.8.3-pkgconfig_sharp.patch
33 sha256sums=('638a7959d04e95f1e62abad02bd33702e4e8dfef98485ac7d9d50395c37e955d'
34 'b181131ee5b42673074f8217155b4f147623cc63dd382ee4bfa2cb81cd281b20'
35 '02daa2b46d0cfdee14c9d96eabf903ba4638694e669c5cb0ec462076837ac2ff'
36 '8e61c2a26c9144f2d76dae84ebb0b6ac9a73c53e4411fd4046c3938e0bbe5e23'
37 '35786054ebbfab1d247d51e7c7dc7618f8ed9fc17ad3c8b590d89190728452ea')
41 patch -Np1 -i ../0001-323-Segmentation-fault-when-opening-ipod.patch
42 patch -Np1 -i ../libgpod-0.8.2-pkgconfig_overlinking.patch
43 patch -Np1 -i ../libgpod-0.8.3-pkgconfig_sharp.patch
44 patch -Np0 -i ../libgpod-udev.patch
45 sed -e 's|libplist >= 1.0|libplist-2.0 >= 2.2|' -i configure.ac # support libplist 2.2
51 ./configure --prefix=/usr \
52 --with-udev-dir=/usr/lib/udev --enable-udev \
53 --with-python=no --with-mono=no
54 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
60 make DESTDIR="${pkgdir}" install
63 # vim:set sw=2 sts=-1 et: