summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76204c3fcc9becc98944b15faf11dbc0946c90f4 (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
# Maintainer: Ragnar Laud <ragnar.laud@hotmail.com>
_pkgname=go-pdirs
pkgname=$_pkgname-git
pkgrel=1
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)

source=("git+$url.git")
sha256sums=('SKIP')

build() {
	cd $_pkgname
  make build
}

check() {
	cd $_pkgname
	make test
}

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