aboutsummaryrefslogtreecommitdiffstats
path: root/community/curlie/APKBUILD
blob: ae225d1aec790f0f207a2436bb926b97430c63a6 (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
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=curlie
pkgver=1.6.7
pkgrel=8
pkgdesc="Curlie is a frontend to curl that adds the ease of use of httpie"
url="https://github.com/rs/curlie"
arch="all"
license="MIT"
depends="curl"
makedepends="go"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/rs/curlie/archive/v$pkgver.tar.gz"

build() {
	go build -ldflags "-X main.version=$pkgver -X main.date=$(date -u -I)"
}

check() {
	go test
}

package() {
	install -Dm755 curlie "$pkgdir"/usr/bin/curlie
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="
22996f44217adda45c90b29ad1eea6732e5ff83bb113171f00a2dc13b23ec7ac91ace778193155d2273e73c84cdee6bdc640c7de8eeb2355d39833a2347e65f4  curlie-1.6.7.tar.gz
"