Skip to content

Commit 4524119

Browse files
committed
alarmcn/ipatool: initial commit
1 parent d225197 commit 4524119

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

alarmcn/ipatool/PKGBUILD

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
}

alarmcn/ipatool/lilac.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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

0 commit comments

Comments
 (0)