summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 386a32c6d0fc3d405958744afef0bbf61dcafbcb (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
38
39
# Maintainer: Ivan Shapovalov <intelfx@intelfx.name>
# Contributor: Matthew Bauer <mjbauer95@gmail.com>

pkgname=libirecovery-git
epoch=2
pkgver=1.0.0.r59.g28be953
pkgrel=1
pkgdesc="Library and utility to talk to iBoot/iBSS via USB"
arch=('i686' 'x86_64')
url="http://www.libimobiledevice.org/"
license=('LGPL2.1')
depends=('libusb' 'readline' 'libplist-git' 'libimobiledevice-glue-git')
makedepends=('git')
provides=(libirecovery-1.0.so "libirecovery=$pkgver")
conflicts=("libirecovery")
source=("git+https://github.com/libimobiledevice/libirecovery")
md5sums=('SKIP')

pkgver() {
	cd libirecovery
	git describe --long --tags | sed 's/[^-]*-g/r&/;s/-/./g'
}

prepare() {
	cd libirecovery
	NOCONFIGURE=1 ./autogen.sh
}

build() {
	cd libirecovery
	./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
	#sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool # not needed anymore (libtool honors $LDFLAGS now)
	make
}

package() {
	cd libirecovery
	make DESTDIR="$pkgdir" install
}