diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 49 |
2 files changed, 24 insertions, 39 deletions
@@ -1,13 +1,13 @@ pkgbase = xmlfs - pkgdesc = mount xml files as directory structures + pkgdesc = Mount XML files as directory structures pkgver = 0.1.1 - pkgrel = 1 - url = http://github.com/halhen/xmlfs - arch = i686 - arch = x86_64 + pkgrel = 4 + url = https://github.com/halhen/xmlfs + arch = any license = GPL - depends = fuse>=2.6 + depends = fuse depends = libxml2 + source = https://github.com/halhen/xmlfs/archive/refs/tags/0.1.1.tar.gz + sha256sums = 1b6e4d8d3f6615f2c82a5ff65524f5b33cc43eb92a4f301d8020f2144ad24985 pkgname = xmlfs - @@ -1,40 +1,25 @@ -# PKGBUILD for ArchLinux -# Uses the main git repository as source -# Not using _gitroot and _gitname, since this PKGBUILD -# is for installing tagged and released versions, -# not the latest release. +# Maintainer: <reg-archlinux AT klein DOT tuxli DOT ch> +# Contributor: Alexander F Rødseth <xyproto@archlinux.org> # Contributor: halhen <halhen at k2h dot se> pkgname=xmlfs pkgver=0.1.1 -pkgrel=1 -pkgdesc="mount xml files as directory structures" -license=(GPL) -arch=('i686' 'x86_64') -url=http://github.com/halhen/xmlfs -depends=('fuse>=2.6' libxml2) -source=() +pkgrel=4 +pkgdesc='Mount XML files as directory structures' +license=('GPL') +arch=('any') +url='https://github.com/halhen/xmlfs' +depends=('fuse' 'libxml2') +source=("https://github.com/halhen/xmlfs/archive/refs/tags/${pkgver}.tar.gz") +sha256sums=('1b6e4d8d3f6615f2c82a5ff65524f5b33cc43eb92a4f301d8020f2144ad24985') build() { - cd "$srcdir" - msg "Connecting to git server..." - - if [[ -d "$srcdir/$pkgname" ]]; then - (cd "$pkgname" && git pull origin master) || return 1 - msg "Repository updated" - else - git clone "http://github.com/halhen/xmlfs.git" || return 1 - msg "Repository cloned" - fi - - rm -rf "$srcdir/$pkgname-build" - cp -R "$srcdir/$pkgname"{,"-build"} - cd "$srcdir/$pkgname-build" - - msg "Using version $pkgver..." - git checkout $pkgver || return 1 + cd "${pkgname}-${pkgver}" + make -C . +} - msg "Starting make ..." - make PREFIX=/usr MANPREFIX=/usr/man DESTDIR=$startdir/pkg install || return 1 - install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE +package() { + cd "${pkgname}-${pkgver}" + make PREFIX=/usr MANPREFIX=/usr/man DESTDIR="${pkgdir}" install + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |