[arch-commits] Commit in haskell-panic/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Aug 5 03:10:04 UTC 2018
Date: Sunday, August 5, 2018 @ 03:10:04
Author: felixonmars
Revision: 368150
archrelease: copy trunk to community-x86_64
Added:
haskell-panic/repos/community-x86_64/
haskell-panic/repos/community-x86_64/PKGBUILD
(from rev 368149, haskell-panic/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: haskell-panic/repos/community-x86_64/PKGBUILD (from rev 368149, haskell-panic/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2018-08-05 03:10:04 UTC (rev 368150)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=panic
+pkgname=haskell-panic
+pkgver=0.4.0.1
+pkgrel=1
+pkgdesc="A convenient way to panic"
+url="https://github.com/yav/panic"
+license=('ISC')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-gitrev')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('7df11c15414c1513f86a236b1bb549c5cf8795e9f5120580ce5e05b2bd423914df33db79b901835987adb9726d9f24bbc8590cfb4a0a6cb2a905e667e0a4e9da')
+
+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 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 -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