diff options
author | 1Conan | 2022-07-13 04:27:58 +0800 |
---|---|---|
committer | 1Conan | 2022-07-13 04:27:58 +0800 |
commit | 8807b41b4a12877b813c57751d09f9272d3aeb94 (patch) | |
tree | 7c74b785c9d1c77812febbef4f4f8e564b3eee84 | |
parent | 32bc85dcd459c6e64278d8be5afab1b06979a7d5 (diff) | |
download | aur-8807b41b4a12877b813c57751d09f9272d3aeb94.tar.gz |
use procursus fork
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 88 |
2 files changed, 41 insertions, 68 deletions
@@ -1,22 +1,21 @@ pkgbase = ldid-git - pkgdesc = a tool used for ad-hoc codesigning iOS binaries - saurik official - pkgver = 2.1.2.r10.d4a4dbe - pkgrel = 4 - url = https://git.saurik.com/ldid.git - arch = x86_64 + pkgdesc = a tool used for ad-hoc codesigning iOS binaries + pkgver = v2.1.5.r63.g685ead2 + pkgrel = 1 + url = https://github.com/ProcursusTeam/ldid + arch = any license = AGPL3 makedepends = git - makedepends = clang + makedepends = gcc + makedepends = make depends = libplist + depends = libxml2 depends = openssl provides = ldid provides = ldid2 - provides = ldid2-git conflicts = ldid conflicts = ldid2 - conflicts = ldid2-git - source = file:///dev/null - md5sums = d41d8cd98f00b204e9800998ecf8427e + source = ldid-git::git+https://github.com/ProcursusTeam/ldid#branch=master + sha512sums = SKIP pkgname = ldid-git - @@ -1,69 +1,43 @@ # Maintainer: Darren Ng <$(base64 --decode <<<'VW4xR2ZuQGdtYWlsLmNvbQo=')> pkgname=ldid-git -pkgver=2.1.2.r10.d4a4dbe -pkgrel=4 -pkgdesc="a tool used for ad-hoc codesigning iOS binaries - saurik official" -arch=(x86_64) -url="https://git.saurik.com/${pkgname//-/.}" +pkgver=v2.1.5.r63.g685ead2 +pkgrel=1 +pkgdesc="a tool used for ad-hoc codesigning iOS binaries" +arch=('any') +url="https://github.com/ProcursusTeam/ldid" license=(AGPL3) +provides=('ldid' 'ldid2') +conflicts=('ldid' 'ldid2') depends=( - libplist - # libxml2 # libxml-2.0 - openssl + 'libplist' + 'libxml2' + 'openssl' ) -makedepends=(git clang) -provides=(${pkgname%-git}{,2{,-git}}) -conflicts=(${provides[*]}) -# https://stackoverflow.com/questions/10909976/why-do-seemingly-empty-files-and-strings-produce-md5sums -source=(file:///dev/null) -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}" -} +makedepends=( + 'git' + 'gcc' + 'make' +) +source=("$pkgname::git+https://github.com/ProcursusTeam/ldid#branch=master") +sha512sums=("SKIP") -pkgver(){ - cd "$srcdir/${pkgname%-git}" - printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/^v//g')" +pkgver() { + cd "$pkgname" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "0.0.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) } -# 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(){ -# Blame me or the upstream -# clang -I. -c -o lookup2.o lookup2.c -# clang++ -std=c++11 -o ldid lookup2.o ldid.cpp -I. -lcrypto -lplist-2.0 -lxml2 -cd "$srcdir/${pkgname%-git}" -cat <<"EOM" >Makefile -# -CC:=/bin/false -CXX:=/bin/false -CFLAGS:=$(CFLAGS) $(shell pkg-config --cflags libplist-2.0,libcrypto) -# -default: ldid -ldid: CC:=clang++ -ldid: LDLIBS:=$(shell pkg-config --libs libplist-2.0,libcrypto) -ldid: ldid.o lookup2.o -# -%.o: CC:=clang -%.o: CXX:=clang++ -ldid.o: ldid.cpp -lookup2.o: lookup2.c -# -EOM -make +build() { + cd "$pkgname" + make } -package(){ - cd "$srcdir/${pkgname%-git}" - install -vDm755 ldid "$pkgdir/usr/bin/ldid" - ln -sfv "ldid" "$pkgdir/usr/bin/ldid2" +package() { + cd "$pkgname" + make install \ + DESTDIR="$pkgdir" \ + PREFIX="/usr" } |