summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 989c3998e91e90109489140d35b85f26c59e820b (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
# Maintainer: aksr <aksr at t-com dot me>
pkgname=libregexp-git
pkgver=r25.b50d07a
pkgrel=1
pkgdesc='A Unix port of the Plan 9 regular expression library, originally done for the Inferno operating system.'
arch=('i686' 'x86_64')
url='https://github.com/0intro/libregexp'
license=('MIT')
makedepends=('git')
source=("$pkgname::git+https://github.com/0intro/libregexp.git")
md5sums=('SKIP')

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

build() {
	cd "$srcdir/$pkgname"
	make
}

package() {
	cd "$srcdir/$pkgname"
	make PREFIX="$pkgdir/usr" install
	install -Dm644 README.md $pkgdir/usr/share/doc/${pkgname%-*}/README.md
	install -Dm644 NOTICE $pkgdir/usr/share/licenses/${pkgname%-*}/NOTICE
}