summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: df21ff25915370d3ab3fd8a813fd4f947094d28b (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: Dennis Wölfing <denniswoelfing at gmx dot de>

pkgname=rw-git
pkgver=1.0.r0.g755e3df
pkgrel=1
pkgdesc="Blockwise input/output"
arch=('x86_64')
url="https://sortix.org/rw"
license=('custom:ISC')
depends=('glibc')
makedepends=('git')
provides=('rw')
conflicts=('rw')
source=('git+https://gitlab.com/sortix/rw-portable.git')
md5sums=('SKIP')

pkgver() {
	cd rw-portable
	git describe --long | sed 's/^rw-portable-//;s/-/.r/;s/-/./'
}

build() {
	cd rw-portable
	make
}

package() {
	cd rw-portable
	make DESTDIR="$pkgdir" PREFIX=/usr install
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}