summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 08841b7f79a3c1331a73adb7135053809f23ae91 (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
pkgname=httpie-unixsocket-git
pkgver=r18.76d98b2
pkgrel=1
pkgdesc="UNIX socket transport plugin for HTTPie"
arch=('any')
url="https://github.com/httpie/httpie-unixsocket"
license=('custom:BSD')
depends=('httpie' 'python-requests-unixsocket')
makedepends=('git' 'python-setuptools')
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
source=('git+https://github.com/httpie/httpie-unixsocket.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-*}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/${pkgname%-*}"
  python setup.py build
}

package() {
  cd "$srcdir/${pkgname%-*}"
  python setup.py install --root="$pkgdir" --optimize=1
  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}