summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa0256c03fb12172021b39e6f23de90816bb10c0 (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
# Maintainer: Ragnar Laud <ragnar.laud@hotmail.com>
pkgname=go-pdirs
pkgrel=2
pkgver=0.1.2
pkgdesc="Project directory resolver"
arch=(x86_64)
url="https://github.com/xprnio/$pkgname"
license=(MIT)
depends=(go make)
makedepends=(git)
provides=($pkgname)
conflicts=($pkgname-git)

source=("https://github.com/xprnio/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('2a02afb13bcfca8b0057a48812cbdd8de0e8e3ebe007abeeb37eb26c9882268b')

build() {
  cd $pkgname-$pkgver
  make build
}

check() {
  cd $pkgname-$pkgver
	make test
}

package() {
  cd $pkgname-$pkgver
  install -Dm755 "bin/go-pdirs" "$pkgdir/usr/bin/$pkgname"
}