Date: Thursday, September 15, 2022 @ 21:20:17
Author: felixonmars
Revision: 1302933
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-x11/repos/community-staging-x86_64/
haskell-x11/repos/community-staging-x86_64/PKGBUILD
(from rev 1302932, haskell-x11/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: haskell-x11/repos/community-staging-x86_64/PKGBUILD (from rev 1302932,
haskell-x11/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-09-15 21:20:17 UTC (rev 1302933)
@@ -0,0 +1,39 @@
+# Maintainer: Sergej Pupykin <[email protected]>
+# Contributor: shild <[email protected]>
+# Maintainer: Vesa Kaihlavirta <[email protected]>
+
+_hkgname=X11
+pkgname=haskell-x11
+pkgver=1.10.3
+pkgrel=1
+pkgdesc="A Haskell binding to the X11 graphics library."
+arch=(x86_64)
+url="https://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11"
+license=('BSD')
+depends=('ghc-libs' 'libx11' 'libxinerama' 'libxrandr' 'libxss'
'haskell-data-default-class')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/X11/$pkgver/X11-$pkgver.tar.gz)
+sha512sums=('5ce575568ec8db465f57d5e2901edf93b1f123f2a8828d397fbf20f4a46189b4c61a009fa0adbff4ceaa0a64d18d5bb6e38da9f3a4381f2462246426f9ecebfb')
+
+build() {
+ cd $_hkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic
--disable-library-vanilla \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
--ghc-option=-fllvm
+ 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
+}
+
+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
+}