Date: Wednesday, September 14, 2022 @ 07:17:50
  Author: felixonmars
Revision: 1301174

addpkg: haskell-gi-gdkpixbuf 2.0.28-1

Added:
  haskell-gi-gdkpixbuf/
  haskell-gi-gdkpixbuf/repos/
  haskell-gi-gdkpixbuf/trunk/
  haskell-gi-gdkpixbuf/trunk/PKGBUILD

----------+
 PKGBUILD |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

Added: haskell-gi-gdkpixbuf/trunk/PKGBUILD
===================================================================
--- haskell-gi-gdkpixbuf/trunk/PKGBUILD                         (rev 0)
+++ haskell-gi-gdkpixbuf/trunk/PKGBUILD 2022-09-14 07:17:50 UTC (rev 1301174)
@@ -0,0 +1,46 @@
+# Maintainer: Felix Yan <[email protected]>
+
+_hkgname=gi-gdkpixbuf
+pkgname=haskell-gi-gdkpixbuf
+pkgver=2.0.28
+pkgrel=1
+pkgdesc="GdkPixbuf bindings"
+url="https://github.com/haskell-gi/haskell-gi";
+license=("LGPL2.1")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-gi-gio' 'haskell-gi-glib' 'haskell-gi-gmodule' 
'haskell-gi-gobject'
+         'haskell-gi' 'haskell-gi-base' 'haskell-gi-overloading' 'gdk-pixbuf2')
+makedepends=('ghc' 'gobject-introspection')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz";)
+sha256sums=('ee0a154edb35f789260ca01fa0d9897fb18e7e8818dd0121a4f508cf2dead205')
+
+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 
--enable-tests \
+    --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+    --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+    --ghc-option='-pie' 
+
+  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 $_hkgname-$pkgver
+  runhaskell Setup test
+}
+
+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
+}

Reply via email to