summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f2cbb65cad08ac8a1a44ea9b83b320c18074c5a (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
# Maintainer : Özgür Sarıer <echo b3pndXJzYXJpZXIxMDExNjAxMTE1QGdtYWlsLmNvbQo= | base64 -d>

pkgname=imgpatchtools
pkgver=0.3.r5.g64a745d
pkgrel=1
pkgdesc="Patch img files with system.patch.dat, like OTA zip on PC"
arch=('any')
url="https://github.com/erfanoabdi/imgpatchtools"
license=('GPL')
depends=('zlib' 'bzip2' 'openssl')
makedepends=('git')
source=("git+https://github.com/erfanoabdi/$pkgname.git")
md5sums=('SKIP')

pkgver() {
	cd "${srcdir}/$pkgname"

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

prepare() {
	cd "${srcdir}/$pkgname"
	sed -i 's:data, long size:data, long long size:' blockimg/blockimg.cpp
}

build() {
	cd "${srcdir}/$pkgname"
	make all
}

package() {
	cd "${srcdir}/$pkgname"
	install -d "${pkgdir}/usr/bin/"
	install -Dm0755 ./bin/* "${pkgdir}/usr/bin/"
}