summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7727e5e1b3f6ec74281d59acbafc4375d7a08ed7 (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
# Maintainer: Ivan Shapovalov <intelfx100@gmail.com>
# Contributor: Adam Eberlin < ae at adameberlin dot com >

pkgname=libplist-git
epoch=1
pkgver=1.12.r22.g9ca25d2
pkgrel=2
pkgdesc="A library to handle Apple Property List format whereas it's binary or XML"
url="http://www.libimobiledevice.org/"
arch=('i686' 'x86_64')
license=('GPL')
depends=('glib2' 'libxml2' 'python2')
makedepends=('gcc' 'git' 'make' 'cmake' 'swig')
provides=('libplist')
conflicts=('libplist')

source=("git://git.sukimashita.com/libplist.git")
md5sums=('SKIP')

pkgver() {
	cd libplist

	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd libplist

	PYTHON=/usr/bin/python2 ./autogen.sh --prefix=/usr
	make || make -j1 # it could break/choke on building the final library... HACK
}

package() {
	cd libplist

	make DESTDIR="${pkgdir}" install
}