[arch-commits] Commit in haskell-casa-types/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Mar 8 19:51:06 UTC 2020
Date: Sunday, March 8, 2020 @ 19:51:05
Author: felixonmars
Revision: 592436
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-casa-types/repos/community-staging-x86_64/
haskell-casa-types/repos/community-staging-x86_64/PKGBUILD
(from rev 592435, haskell-casa-types/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: haskell-casa-types/repos/community-staging-x86_64/PKGBUILD (from rev 592435, haskell-casa-types/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-03-08 19:51:05 UTC (rev 592436)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=casa-types
+pkgname=haskell-casa-types
+pkgver=0.0.0.20191219
+_commit=3dee7dc1594e4d0ea2b101ad933ce23b4bc3c451
+pkgrel=28
+pkgdesc="Content Addressable Storage Archive types"
+url="https://github.com/fpco/casa"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-attoparsec' 'haskell-base16-bytestring'
+ 'haskell-hashable' 'haskell-path-pieces' 'haskell-persistent')
+makedepends=('ghc')
+source=(casa-$_commit.tar.gz::https://github.com/fpco/casa/archive/$_commit.tar.gz)
+sha512sums=('8f8bd2ffbd250de61aeeafa85c3b3921599aa3fef031966d30581d5abf29bff2f3749350c312d10145331fc054642bf184eabcea69be9baad9be226cb5e4991f')
+
+prepare() {
+ cd casa-$_commit/$_hkgname
+ echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs
+}
+
+build() {
+ cd casa-$_commit/$_hkgname
+
+ 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
+ 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 casa-$_commit/$_hkgname
+ runhaskell Setup test
+}
+
+package() {
+ cd casa-$_commit/$_hkgname
+
+ 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