summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaron Kent-Dobias2019-01-27 14:06:42 -0500
committerJaron Kent-Dobias2019-01-27 14:06:42 -0500
commit7d0f182c212fccacdfa62d19fe3184027561d109 (patch)
tree8c145660e57590c9e62d530349e834231b8320ee
downloadaur-haskell-histogram-fill.tar.gz
initialized package repo for histogram-fill
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD41
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..45010adee19
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = haskell-histogram-fill
+ pkgdesc = A library for histogram filling.
+ pkgver = 0.9.1.0
+ pkgrel = 1
+ url = https://hackage.haskell.org/package/histogram-fill
+ arch = x86_64
+ license = BSD-3
+ makedepends = ghc
+ depends = ghc-libs
+ depends = haskell-primitive
+ depends = haskell-vector
+ source = https://hackage.haskell.org/package/histogram-fill-0.9.1.0/histogram-fill-0.9.1.0.tar.gz
+ sha512sums = a6d2a4cde30bef39ea35591c8896f035a022cc54f5d9df62310f28394723e04d64c6039168fb4a45f0de17098f9bbb9764648dc156a812b4104415e2dde4d82b
+
+pkgname = haskell-histogram-fill
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8f694a25137
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Jaron Kent-Dobias <jaron@kent-dobias.com>
+
+_hkgname=histogram-fill
+pkgname=haskell-histogram-fill
+pkgver=0.9.1.0
+pkgrel=1
+pkgdesc='A library for histogram filling.'
+url='https://hackage.haskell.org/package/histogram-fill'
+license=('BSD-3')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-primitive' 'haskell-vector')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/package/${_hkgname}-${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('a6d2a4cde30bef39ea35591c8896f035a022cc54f5d9df62310f28394723e04d64c6039168fb4a45f0de17098f9bbb9764648dc156a812b4104415e2dde4d82b')
+
+build() {
+ cd ${_hkgname}-${pkgver}
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+ runhaskell Setup build
+ runhaskell Setup haddock
+ runhaskell Setup register --gen-script
+ runhaskell Setup unregister --gen-script
+ sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+ cd ${_hkgname}-${pkgver}
+ install -Dm 744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
+ install -Dm 744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh"
+ install -dm 755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+ runhaskell Setup copy --destdir="$pkgdir"
+
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 ChangeLog.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ ln -s /usr/share/doc/${pkgname}/html "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
+}
+
+# vim: ts=2 sw=2 et: