File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Maintainer: Integral <integral@archlinuxcn.org>
2+ # Contributor: aliu <aaron! liu! 0130! at! gmail! dot! com! woohoo>
3+
4+ pkgname=ipatool
5+ pkgver=2.2.0
6+ pkgrel=1
7+ pkgdesc=" CLI tool for searching and downloading app packages from the iOS App Store"
8+ arch=(' x86_64' ' aarch64' ' riscv64' )
9+ url=" https://github.com/majd/${pkgname} "
10+ license=(' MIT' )
11+ makedepends=(' go' )
12+ source=(" ${pkgname} -${pkgver} .tar.gz::${url} /archive/v${pkgver} .tar.gz" )
13+ sha256sums=(' 676cd6bd039c25fe649a35ea86977706c0818442624da87c7f4285257cc7aa12' )
14+
15+ prepare () {
16+ cd " ${pkgname} -${pkgver} /"
17+ export GOPATH=" ${srcdir} "
18+ go mod download -modcacherw -x
19+ mkdir -p build
20+ }
21+
22+ build () {
23+ cd " ${pkgname} -${pkgver} /"
24+ export CGO_CPPFLAGS=" ${CPPFLAGS} "
25+ export CGO_CFLAGS=" ${CFLAGS} "
26+ export CGO_CXXFLAGS=" ${CXXFLAGS} "
27+ export CGO_LDFLAGS=" ${LDFLAGS} "
28+ export GOFLAGS=" -buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
29+ go build -o build -v
30+ }
31+
32+ check () {
33+ cd " ${pkgname} -${pkgver} /"
34+ go generate ./...
35+ go test ./...
36+ }
37+
38+ package () {
39+ cd " ${pkgname} -${pkgver} /"
40+ install -Dm755 " build/${pkgname} " -t " ${pkgdir} /usr/bin/"
41+ install -Dm644 LICENSE -t " $pkgdir /usr/share/licenses/${pkgname} /"
42+ }
Original file line number Diff line number Diff line change 1+ maintainers :
2+ - github : Integral-Tech
3+ email : integral@archlinuxcn.org
4+
5+ pre_build_script : update_pkgver_and_pkgrel(_G.newver)
6+ post_build_script : git_pkgbuild_commit()
7+
8+ update_on :
9+ - source : github
10+ github : majd/ipatool
11+ use_latest_release : true
12+ prefix : v
You can’t perform that action at this time.
0 commit comments