Add a PKGBUILD file

This commit is contained in:
Les De Ridder 2016-11-08 04:43:03 +01:00
parent dce7458b09
commit d33552ef0f
No known key found for this signature in database
GPG Key ID: 5EC132DFA85DB372
1 changed files with 38 additions and 0 deletions

38
PKGBUILD Normal file
View File

@ -0,0 +1,38 @@
# Maintainer: Les De Ridder <aur@lesderid.net>
_pkgname=dtagfs
pkgname=dtagfs-git
pkgver=0.1.0.r0.ga141d74
pkgrel=1
pkgdesc="Tag-based FUSE virtual file system"
arch=('i386' 'x86_64')
url="https://git.fuwafuwa.moe/lesderid/dtagfs"
license=('custom:NCSA')
depends=('fuse' 'exempi')
makedepends=('git' 'dub' 'd-compiler')
provides=($_pkgname)
conflicts=($_pkgname)
source=('git+https://git.fuwafuwa.moe/lesderid/dtagfs')
md5sums=('SKIP')
build() {
cd "$srcdir/$_pkgname"
dub build -b=release
}
package() {
cd "$srcdir/$_pkgname"
mkdir -p $pkgdir/usr/bin/
cp dtagfs $pkgdir/usr/bin/dtagfs
ln -s /usr/bin/dtagfs $pkgdir/usr/bin/mount.fuse.dtagfs
mkdir -p $pkgdir/usr/share/licenses/$_pkgname/
cp LICENSE $pkgdir/usr/share/licenses/$_pkgname/LICENSE
}
pkgver() {
cd "$srcdir/$_pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}