summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0aeb031aa8932a44fccd1f55acdb83be159c4225 (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: Kenichi Takahashi <kenichi.taka@gmail.com>

pkgname=frgm
pkgver=0.11.0
pkgrel=1
pkgdesc='meta snippet(fragment) manager'
arch=('x86_64')
url="https://github.com/k1LoW/$pkgname"
license=('MIT')
makedepends=('go')
source=("$pkgname-$pkgver::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('d575c004034dd93bd67215ef07dd65f679ba313c3459b1826ff70041ff61890a')

prepare(){
  cd "$pkgname-$pkgver"
  mkdir -p build/
}

build() {
  cd "$pkgname-$pkgver"
  go build -o build 
}

check() {
  cd "$pkgname-$pkgver"
  go test ./...
}

package() {
  cd "$pkgname-$pkgver"
  install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/frgm/LICENSE"
}