summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1217f723b464b5f6f6806976b87bbde340338fd1 (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: Anna <morganamilo@gmail.com>
_pkgname=putils
pkgname=putils-git
pkgver=r3.1e54e08
pkgrel=1
pkgdesc="Utilities for working with pipes"
arch=(x86_64)
url="https://github.com/Morganamilo/putils"
license=('GPL3')
makedepends=(git go asciidoc)
provides=(putils)
conflicts=(putils)
source=("git+https://github.com/Morganamilo/putils")
md5sums=('SKIP')

build() {
	cd "$_pkgname"
	make PREFIX=/usr DESTDIR="$pkgdir" all
}

package() {
	cd "$_pkgname"
	make PREFIX=/usr DESTDIR="$pkgdir" install_all
}

pkgver() {
	cd "$_pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}