blob: 3b81f9c69ec55efdb5a452db0c604c4fc5b716e7 (
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
|
pkgname=go-do-it
_pkgname=go-do-it
pkgver=2.0.0.r0.g720f5b4
pkgrel=1
pkgdesc="A simple to-do list written in go"
arch=('i686' 'x86_64')
url='https://github.com/hardikkum444/go-do-it'
source=('git+https://github.com/hardikkum444/go-do-it')
makedepends=('go')
sha1sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build(){
cd "$srcdir/$_pkgname"
GO111MODULE=on go build -o "$srcdir/bin/go-do-it"
}
package() {
cd "$srcdir/bin"
install -Dm755 'go-do-it' "$pkgdir/usr/bin/go-do-it"
}
|