db-move: moved xdg-desktop-portal-gnome from [testing] to [extra] (x86_64)
[arch-packages.git] / libgpod / trunk / PKGBUILD
blob3b4d7e891b6b53f48bcd23fdc0c0d5ca2cb2d206
1 # Contributor: Daniel Isenmann <daniel@archlinux.org>
2 # Contributor: William Rea <sillywilly@gmail.com>
4 pkgname=libgpod
5 pkgver=0.8.3
6 pkgrel=14
7 pkgdesc="A shared library to access the contents of an iPod"
8 url="http://www.gtkpod.org/libgpod/"
9 arch=(x86_64)
10 license=(LGPL)
11 depends=(
12   gdk-pixbuf2
13   libimobiledevice
14   libplist
15   sg3_utils
16   sqlite
17   usbmuxd
19 makedepends=(
20   docbook-xsl
21   gtk-doc
22   intltool
24 provides=(libgpod.so)
25 options=(!emptydirs)
26 source=(
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
31   libgpod-udev.patch
33 sha256sums=('638a7959d04e95f1e62abad02bd33702e4e8dfef98485ac7d9d50395c37e955d'
34             'b181131ee5b42673074f8217155b4f147623cc63dd382ee4bfa2cb81cd281b20'
35             '02daa2b46d0cfdee14c9d96eabf903ba4638694e669c5cb0ec462076837ac2ff'
36             '8e61c2a26c9144f2d76dae84ebb0b6ac9a73c53e4411fd4046c3938e0bbe5e23'
37             '35786054ebbfab1d247d51e7c7dc7618f8ed9fc17ad3c8b590d89190728452ea')
39 prepare() {
40   cd $pkgname-$pkgver
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
46   autoreconf -vi
49 build() {
50   cd $pkgname-$pkgver
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
55   make
58 package() {
59   cd $pkgname-$pkgver
60   make DESTDIR="${pkgdir}" install
63 # vim:set sw=2 sts=-1 et: