summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14e3cd04310f3cc22f68885f5f163ab55f066a4c (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
# Maintainer: Justin Williams <justin@justinandyadi.com>

pkgname=ldid2
pkgver=76.11f7ebc
pkgrel=1
pkgdesc="a tool used for ad-hoc codesigning iOS binaries - xerub's fork"
provides=('ldid' 'ldid2')
arch=('any')
url="https://github.com/xerub/ldid"
license=('custom')
makedepends=('git' 'clang')
optdepends=()
source=("git+https://github.com/xerub/ldid")
sha256sums=('SKIP')

pkgver() {
	cd ldid
	echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
	cd ldid
	clang++ -I. -c -std=c++11 -o ldid.o ldid.cpp
	clang++ -I. -o ldid ldid.o -x c lookup2.c -x c sha1.c
	clang++ -I. -c -std=c++11 -o ldid2.o ldid2.cpp
	clang++ -I. -o ldid2 ldid2.o -x c lookup2.c -x c sha1.c -x c sha224-256.c
}

package() {
	cd ldid
	mkdir -p ${pkgdir}/usr/bin/
	install -Dm755 ldid ${pkgdir}/usr/bin/
	install -Dm755 ldid2 ${pkgdir}/usr/bin/
}