[arch-commits] Commit in haskell-structured/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Dec 28 12:13:34 UTC 2020
Date: Monday, December 28, 2020 @ 12:13:33
Author: felixonmars
Revision: 794808
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-structured/repos/community-staging-x86_64/
haskell-structured/repos/community-staging-x86_64/PKGBUILD
(from rev 794807, haskell-structured/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: haskell-structured/repos/community-staging-x86_64/PKGBUILD (from rev 794807, haskell-structured/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-12-28 12:13:33 UTC (rev 794808)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=structured
+pkgname=haskell-structured
+pkgver=0.1
+pkgrel=57
+pkgdesc="Structure (hash) of your data types"
+url="https://github.com/phadej/binary-tagged"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-base16-bytestring' 'haskell-hashable'
+ 'haskell-scientific' 'haskell-tagged' 'haskell-time-compat' 'haskell-unordered-containers'
+ 'haskell-uuid-types' 'haskell-vector')
+makedepends=('ghc' 'uusi')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('52a1834a7c9ac1b62241bc9f424d63b1a541e791b13937f61d15da35b9ab024d3df39949f156b2f23293d397d961cb91c8fa38a5585db4f740a20b52b6dcc49d')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ uusi -u aeson -u base16-bytestring $_hkgname.cabal
+ echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs
+}
+
+build() {
+ cd $_hkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+ runhaskell Setup build $MAKEFLAGS
+ 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
+}
+
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
+package() {
+ cd $_hkgname-$pkgver
+
+ install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
+ install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+ runhaskell Setup copy --destdir="$pkgdir"
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list