diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -1,7 +1,7 @@ # Maintainer: Dennis Wölfing <denniswoelfing at gmx dot de> pkgname=rw-git -pkgver=r2422.6d15ed57 +pkgver=1.0.r0.g755e3df pkgrel=1 pkgdesc="Blockwise input/output" arch=('x86_64') @@ -9,21 +9,23 @@ url="https://sortix.org/rw" license=('custom:ISC') depends=('glibc') makedepends=('git') -source=('git+https://gitlab.com/sortix/sortix.git') +provides=('rw') +conflicts=('rw') +source=('git+https://gitlab.com/sortix/rw-portable.git') md5sums=('SKIP') pkgver() { - cd sortix - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd rw-portable + git describe --long | sed 's/^rw-portable-//;s/-/.r/;s/-/./' } build() { - cd sortix/rw + cd rw-portable make } package() { - cd sortix/rw + cd rw-portable make DESTDIR="$pkgdir" PREFIX=/usr install - install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |