summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f50bd26de1535c4a86db8dc0a009347c31b42a1d (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
# Maintainer: Ragnar Laud <ragnar.laud@hotmail.com>
_pkgname=go-pdirs
pkgname=$_pkgname-git
pkgrel=1
pkgver=0.1.1
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"
	install -Dm755 "scripts/pcd" "$pkgdir/usr/bin/pcd"
}