[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Thu Aug 17 15:32:19 UTC 2017
Date: Thursday, August 17, 2017 @ 15:32:18
Author: felixonmars
Revision: 251711
addpkg: haskell-bindings-uname 0.1-1
Added:
haskell-bindings-uname/
haskell-bindings-uname/repos/
haskell-bindings-uname/trunk/
haskell-bindings-uname/trunk/PKGBUILD
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Added: haskell-bindings-uname/trunk/PKGBUILD
===================================================================
--- haskell-bindings-uname/trunk/PKGBUILD (rev 0)
+++ haskell-bindings-uname/trunk/PKGBUILD 2017-08-17 15:32:18 UTC (rev 251711)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=bindings-uname
+pkgname=haskell-bindings-uname
+pkgver=0.1
+pkgrel=1
+pkgdesc="Provides some basic WAI handlers and middleware."
+url="http://github.com/yesodweb/wai"
+license=("custom:PublicDomain")
+arch=('i686' 'x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('e668b8524cd35e0558d2321f8b89e5b8f9666d43c6950a4b8e56468a84d4664bd7f6c679160fd85370ba3109fb38c00d15bf0ece9da548affcba7ec375b8b394')
+
+build() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --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 "${srcdir}/${_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}"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
Property changes on: haskell-bindings-uname/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list