diff options
author | Emmanuel Gil Peyrot | 2017-05-26 18:52:12 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot | 2017-05-26 18:57:26 +0100 |
commit | 4a9cb2e5c7a65a2be0acbd1ed97f726ea5e41c83 (patch) | |
tree | 350d7166e1e3b9fba969322e762fd050ced3e061 | |
download | aur-4a9cb2e5c7a65a2be0acbd1ed97f726ea5e41c83.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8514d6715d41 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +# Generated by mksrcinfo v8 +# Fri May 26 17:57:23 UTC 2017 +pkgbase = hsbooru-git + pkgdesc = *booru scraper in Haskell + pkgver = r66.13b508f + pkgrel = 1 + url = https://github.com/haasn/hsbooru + arch = i686 + arch = x86_64 + arch = armv7h + arch = aarch64 + license = GPL3 + makedepends = git + makedepends = ghc + makedepends = cabal-install + depends = xapian-core + source = hsbooru::git+https://github.com/haasn/hsbooru + source = git+https://github.com/haasn/intset + md5sums = SKIP + md5sums = SKIP + +pkgname = hsbooru-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..34104ba3fd97 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com> + +_pkgname=hsbooru +pkgname="$_pkgname-git" +pkgver=r66.13b508f +pkgrel=1 +pkgdesc="*booru scraper in Haskell" +arch=('i686' 'x86_64' 'armv7h' 'aarch64') +url="https://github.com/haasn/hsbooru" +license=('GPL3') +depends=('xapian-core') +makedepends=('git' 'ghc' 'cabal-install') +source=("$_pkgname::git+https://github.com/haasn/hsbooru" + 'git+https://github.com/haasn/intset') +md5sums=('SKIP' + 'SKIP') + +pkgver() { + cd "$srcdir/$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir/$_pkgname" + + git submodule init + git config submodule.extern/intset.url "$srcdir/intset" + + cabal sandbox init + cabal sandbox add-source extern/intset +} + +build() { + cd "$srcdir/$_pkgname" + git submodule update + cabal install +} + +package() { + cd "$srcdir/$_pkgname" + install -Dm755 .cabal-sandbox/bin/hsbooru "$pkgdir/usr/bin/hsbooru" +} + +# vim:set ts=2 sts=2 sw=2 et: |