[arch-commits] Commit in (bustle bustle/repos bustle/trunk bustle/trunk/PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Sat Aug 20 18:28:32 UTC 2022


    Date: Saturday, August 20, 2022 @ 18:28:32
  Author: felixonmars
Revision: 1271104

addpkg: bustle 0.8.0-1

Added:
  bustle/
  bustle/repos/
  bustle/trunk/
  bustle/trunk/PKGBUILD

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

Added: bustle/trunk/PKGBUILD
===================================================================
--- bustle/trunk/PKGBUILD	                        (rev 0)
+++ bustle/trunk/PKGBUILD	2022-08-20 18:28:32 UTC (rev 1271104)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=bustle
+pkgver=0.8.0
+pkgrel=1
+pkgdesc="Draw sequence diagrams of D-Bus traffic"
+url="https://gitlab.freedesktop.org/bustle/bustle#readme"
+license=("LGPL")
+arch=('x86_64')
+depends=('ghc-libs' 'glib2' 'libpcap' 'haskell-cairo' 'haskell-gio' 'haskell-glib' 'haskell-gtk'
+         'haskell-pango')
+makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-test-framework'
+             'haskell-test-framework-hunit')
+source=("https://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('2fb3e9d9a97db3cd9a3ce763e86947b642bd7733b46206177a1677f08726573c')
+
+build() {
+  cd $pkgname-$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' \
+    -f-hgettext -f-interactivetests -fthreaded
+
+  runhaskell Setup build
+}
+
+check() {
+  cd $pkgname-$pkgver
+  runhaskell Setup test
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  runhaskell Setup copy --destdir="$pkgdir"
+  rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}



More information about the arch-commits mailing list