archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libgpod / trunk / PKGBUILD
blob46683f071e588aa6a57e24f71dc393294eaeee08
1 # Contributor: Daniel Isenmann <daniel@archlinux.org>
2 # Contributor: William Rea <sillywilly@gmail.com>
4 pkgname=libgpod
5 pkgver=0.8.3
6 pkgrel=15
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')
38 b2sums=('e9bc54d23be7f54a17eea3f8a07d7bf6a28224d9c0b0f90fb9d44d97af6cf64c31096de5d9fa4b446e1a9463a6e8f3a59929d73bf52ad8d638732868c3c1b7d0'
39         '4d984ba1d0a8da1e9a28e06cfebe5501a580ffe528a851e3470855f298db78067fedb14c5cb48c6165f0b571e27259cb30bb848d4b9a4724174a25eaa695ff3f'
40         '74d924d61ce33c4fd0219e8dedb505bd66cd40e9912efb2dbbb5df31c2bea943ea4a4eb8b9e9baf2762966b02efae3f77c73293f8a4a581f6a43be4cc22eb727'
41         'd3cb8ceaf14811c7bdee072229c838a4b9d7bd8c53ec76d2d0177c954730271b75174e559657d0948ccb5f921170e4d6636d4f1a36b329970f6b32da236ce390'
42         'cbf5e305dd2b219149c09763eaf405f9e50944a2a12310caec31770378828241ce06b1747ba78552261724e37de052eefa145589600c77aeefdcc3a86a0b8a23')
44 prepare() {
45   cd $pkgname-$pkgver
46   patch -Np1 -i ../0001-323-Segmentation-fault-when-opening-ipod.patch
47   patch -Np1 -i ../libgpod-0.8.2-pkgconfig_overlinking.patch
48   patch -Np1 -i ../libgpod-0.8.3-pkgconfig_sharp.patch
49   patch -Np0 -i ../libgpod-udev.patch
50   sed -e 's|libplist >= 1.0|libplist-2.0 >= 2.2|' -i configure.ac # support libplist 2.2
51   sed -e 's|plist_dict_insert_item|plist_dict_set_item|' -i tools/ipod-lockdown.c # support libplist 2.3
52   autoreconf -vi
55 build() {
56   local configure_options=(
57     --prefix=/usr
58     --enable-udev
59     --with-mono=no
60     --with-python=no
61     --with-udev-dir=/usr/lib/udev
62   )
64   cd $pkgname-$pkgver
65   ./configure "${configure_options[@]}"
66   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
67   make
70 package() {
71   cd $pkgname-$pkgver
72   make DESTDIR="${pkgdir}" install
75 # vim:set sw=2 sts=-1 et: