[arch-commits] Commit in haskell-crypto-enigma/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Mon Dec 27 22:16:52 UTC 2021
Date: Monday, December 27, 2021 @ 22:16:51
Author: felixonmars
Revision: 1084437
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-crypto-enigma/repos/community-staging-x86_64/
haskell-crypto-enigma/repos/community-staging-x86_64/PKGBUILD
(from rev 1084436, haskell-crypto-enigma/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: haskell-crypto-enigma/repos/community-staging-x86_64/PKGBUILD (from rev 1084436, haskell-crypto-enigma/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-12-27 22:16:51 UTC (rev 1084437)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=crypto-enigma
+pkgname=haskell-crypto-enigma
+pkgver=0.1.1.6
+pkgrel=15
+pkgdesc="An Enigma machine simulator with display. "
+url="https://github.com/orome/crypto-enigma-hs"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-ansi-terminal' 'haskell-optparse-applicative' 'haskell-split')
+makedepends=('ghc' 'uusi' 'haskell-hunit' 'haskell-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha256sums=('5fec48245fd75d91ed1ac953fb21834eff3dc0b13b5bd100155ce4f4f8cd1d1f')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ uusi -u base $_hkgname.cabal
+}
+
+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 --ghc-option=-fllvm \
+ --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+ --ghc-option='-pie'
+
+ 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 --show-details=direct
+}
+
+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 -t "$pkgdir"/usr/share/licenses/$pkgname/
+ rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list