blob: 0fdee2c261a7ae6a7dc22048735fd3abc69d757a (
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
|
# Maintainer: wenLiangcan <boxeed at gmail dot com>
pkgname=gotags-git
_pkgname=gotags
pkgver=20150322
pkgrel=1
pkgdesc="ctags-compatible tag generator for Go."
arch=("any")
url="https://github.com/jstemmer/gotags"
license=('Other')
makedepends=('git' 'go')
depends=()
provides=('gotags')
source=("${_pkgname}"::'git://github.com/jstemmer/gotags.git')
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
git log -1 --format='%cd' --date=short | tr -d -- '-'
}
build() {
cd "${_pkgname}"
GOPATH=${srcdir} go build -o "${_pkgname}"
}
package() {
cd ${_pkgname}
install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
}
|