diff options
author | Darren Ng | 2021-03-01 20:39:01 +0800 |
---|---|---|
committer | Darren Ng | 2021-03-01 20:46:31 +0800 |
commit | 3ad26b9792d28544d257864a038c6333fa358388 (patch) | |
tree | d8f6a76f04ac5b671ac3ee1dae5c627a8861b40b | |
download | aur-3ad26b9792d28544d257864a038c6333fa358388.tar.gz |
weak https, implicit vars, built-in rules
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | PKGBUILD | 65 | ||||
-rw-r--r-- | empty | 0 |
4 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d2a91e1bfab5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = ldid-git + pkgdesc = a tool used for ad-hoc codesigning iOS binaries - saurik official + pkgver = 2.1.2.r10.d4a4dbe + pkgrel = 1 + url = https://git.saurik.com/ldid.git + arch = x86_64 + license = AGPL3 + makedepends = git + depends = clang + depends = libplist + depends = libxml2 + depends = openssl + provides = ldid + provides = ldid2 + provides = ldid2-git + conflicts = ldid + conflicts = ldid2 + conflicts = ldid2-git + source = empty + md5sums = d41d8cd98f00b204e9800998ecf8427e + +pkgname = ldid-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..66f5f260aa1a --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +* + +!empty + +!.gitignore +!PKGBUILD +!.SRCINFO + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8173e5e76a66 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,65 @@ +# Maintainer: Darren Ng <$(base64 --decode <<<'VW4xR2ZuQGdtYWlsLmNvbQo=')> + +pkgname=ldid-git +pkgver=2.1.2.r10.d4a4dbe +pkgrel=1 +pkgdesc="a tool used for ad-hoc codesigning iOS binaries - saurik official" +arch=(x86_64) +url="https://git.saurik.com/${pkgname//-/.}" +license=(AGPL3) +depends=( + clang + libplist + libxml2 + openssl +) +makedepends=(git) +provides=(${pkgname%-git}{,2{,-git}}) +conflicts=(${provides[*]}) +# https://stackoverflow.com/questions/10909976/why-do-seemingly-empty-files-and-strings-produce-md5sums +source=('empty') +md5sums=('d41d8cd98f00b204e9800998ecf8427e') + +prepare(){ + cd "$srcdir" + rm -rf "${pkgname%-git}" + echo -n "$url - " + # https://stackoverflow.com/questions/23885449/unable-to-resolve-unable-to-get-local-issuer-certificate-using-git-on-windows + # [Workaround] fatal: unable to access 'https://git.saurik.com/ldid.git/': SSL certificate problem: unable to get local issuer certificate + # git -c http.sslVerify=false clone file:///tmp/ldid.git "${pkgname%-git}" + git -c http.sslVerify=false clone "$url" "${pkgname%-git}" +} + +pkgver(){ + cd "$srcdir/${pkgname%-git}" + printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/^v//g')" +} + +# https://git.saurik.com/ldid.git/blob/HEAD:/make.sh +# https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html +# https://www.gnu.org/software/make/manual/html_node/Catalogue-of-Rules.html +build(){ +cd "$srcdir/${pkgname%-git}" +cat <<"EOM" >Makefile +# +CC:=clang +CXX:=clang++ +CFLAGS:=$(CFLAGS) $(shell pkg-config --cflags libplist-2.0,libxml-2.0,libcrypto) +# +ldid.o: ldid.cpp +lookup2.o: lookup2.c +# +ldid: LDLIBS:=$(shell pkg-config --libs libplist-2.0,libxml-2.0,libcrypto) +ldid: ldid.o lookup2.o +@TAB@$(CXX) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@ +# +EOM +sed -i s/@TAB@/$'\t'/g Makefile +make ldid +} + +package(){ + cd "$srcdir/${pkgname%-git}" + install -vDm755 ldid "$pkgdir/usr/bin/ldid" + ln -sfv "ldid" "$pkgdir/usr/bin/ldid2" +} diff --git a/empty b/empty new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/empty |