diff options
author | Muflone | 2015-06-13 17:59:16 +0200 |
---|---|---|
committer | Muflone | 2015-06-13 17:59:16 +0200 |
commit | 4a7f37e54326f734300eae087cf435ae6cf36111 (patch) | |
tree | 20c634ad4a6a0abf0b3bd15b8768de73758522de /PKGBUILD | |
download | aur-dirindex.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..90761c02cfe6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Muflone <webreg@vbsimple.net> + +pkgname=dirindex +pkgver=0.3.1 +pkgrel=3 +pkgdesc="Create an HTML index starting from a directory using templates for the resulting pages" +arch=(any) +url="https://github.com/muflone/dirindex" +license=(GPL3) +depends=('python2' 'python-magic') +source=("$pkgname-$pkgver.tar.gz::https://github.com/muflone/$pkgname/tarball/$pkgver") +md5sums=('b7d0621d034e3988940f79ff157f34cb') +noextract=("$pkgname-$pkgver.tar.gz") + +build() { + cd "$srcdir" + [ -d "$pkgname-$pkgver" ] && rm -rf "$pkgname-$pkgver" + mkdir "$pkgname-$pkgver" + tar xzf "$pkgname-$pkgver.tar.gz" -C "$pkgname-$pkgver/" --strip-components=1 + find "$pkgname-$pkgver/templates/" -type f -print0 | xargs --null chmod 644 +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + install -d "$pkgdir/usr/bin" + install -d "$pkgdir/usr/share/$pkgname" + install -m 755 "dirindex.py" "$pkgdir/usr/bin/dirindex" + cp -r templates "$pkgdir/usr/share/$pkgname/templates" +} + |