blob: 91804868ca413f30eca203b2c5e92861b41490cd (
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
|
# Maintainer: aliu <aaron! liu! 0130! at! gmail! dot! com! woohoo>
pkgname=ipatool
pkgver=2.1.5
pkgrel=1
pkgdesc="Command-line tool that allows searching and downloading app packages (known as ipa files) from the iOS App Store"
arch=('any')
url="https://github.com/majd/ipatool"
license=('MIT')
makedepends=('go')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('cc2371353bb00a8050e0d2ba2f4819b6401e26ba3aede5d8ed40812037b59638')
build() {
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
cd "$srcdir/$pkgname-$pkgver"
go build -o $pkgname .
}
check() {
cd "$srcdir/$pkgname-$pkgver"
go generate ./...
go test -v ./...
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 ./$pkgname "$pkgdir"/usr/bin/$pkgname
}
|