blob: 93801999c18032df1fb6fee88a64a97666d2cb2a (
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: Egor Kovetskiy <e.kovetskiy@gmail.com>
pkgname=poe
pkgver=20160315.1_74131fa
pkgrel=1
pkgdesc="examine, list and fix suspicious constructs in Go source code"
arch=('i686' 'x86_64')
license=('GPL')
makedepends=('go' 'git')
source=(
"poe::git+ssh://github.com/kovetskiy/poe"
)
md5sums=(
'SKIP'
)
backup=(
)
pkgver() {
cd "$srcdir/$pkgname"
local date=$(git log -1 --format="%cd" --date=short | sed s/-//g)
local count=$(git rev-list --count HEAD)
local commit=$(git rev-parse --short HEAD)
echo "$date.${count}_$commit"
}
package() {
install -DT "$srcdir/$pkgname/poe" "$pkgdir/usr/bin/poe"
}
|