blob: f0143d820aed5a66bccd7bbed82d9a6db8ebf7d5 (
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: peeweep <peeweep at 0x0 dot ee>
pkgname=gotags
pkgver=1.4.1
pkgrel=3
pkgdesc='ctags-compatible tag generator for Go'
arch=('any')
url='https://github.com/jstemmer/gotags'
license=('MIT')
makedepends=('go-pie')
source=("${url}/archive/v${pkgver}.tar.gz"
"https://github.com/jstemmer/gotags/pull/46.patch")
sha256sums=('2df379527eaa7af568734bc4174febe7752eb5af1b6194da84cd098b7c873343'
'246f3e75f000eb09e40ed2d8893834cd7015029607f2ef44f1d7062c5b22ef31')
prepare(){
cd "${srcdir}/${pkgname}-${pkgver}"
patch -p1 < "${srcdir}/46.patch"
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export GOCACHE="${srcdir}/${pkgname}-${pkgver}/gocache"
go build -o "${pkgname}"
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim: ts=2 sw=2 et:
|