blob: 0b996b5f2e5628244c1eb78ff2c80466380da23a (
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
34
35
36
37
38
|
# Maintainer: Tony Lambiris <tony@libpcap.net>
pkgname=pkgcloud-git
pkgver=r63.b0bbd28
pkgrel=1
pkgdesc="Talk to the packagecloud API, in Go"
arch=(x86_64)
url='https://github.com/tonylambiris/pkgcloud'
license=(Apache)
makedepends=(git go)
source=("${pkgname}::git+https://github.com/tonylambiris/pkgcloud.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${pkgname}"
mkdir -p "${srcdir}/go/src/github.com/tonylambiris"
ln -sf "${srcdir}/${pkgname}" "${srcdir}/go/src/github.com/tonylambiris/pkgcloud"
}
build() {
cd "${srcdir}/go/src/github.com/tonylambiris/pkgcloud"
export GOROOT="/usr/lib/go" GOPATH="${srcdir}/go"
make
}
package() {
cd "${srcdir}/go/src/github.com/tonylambiris/pkgcloud"
install -Dm755 "bin/pkgcloud" "${pkgdir}/usr/bin/pkgcloud"
}
|