summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 638933c73adee433e6269c7224b0f4d6edcf2ea0 (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=1
pkgver=0.1.0
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=('399d3da30aaaa154eb186c66c827397ad4e439b8871592cc82794e0dfd8df1e6')

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"
}