summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d5f3925e14c303c841f879ea0d1ece4bbf20f89 (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
# Maintainer: Jianfeng Zhang <swordfeng123@gmail.com>

pkgname=curlie
pkgver=1.5.4
pkgrel=1
pkgdesc='A frontend to curl that adds the ease of use of httpie'
arch=('x86_64')
url="https://curlie.io/"
license=('MIT')
makedepends=('go' 'git')
depends=('curl')
source=("git+https://github.com/rs/curlie.git#tag=v$pkgver")
sha256sums=('SKIP')

build() {
  cd $pkgname
  go build \
    -gcflags "all=-trimpath=$PWD" \
    -asmflags "all=-trimpath=$PWD" \
    -ldflags "-extldflags $LDFLAGS" \
    -o $pkgname .
}

package() {
  cd $pkgname
  install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}