summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCody P Schafer2016-06-29 14:52:00 -0400
committerCody P Schafer2016-06-29 14:52:00 -0400
commit1af45e10315215b8062abcc5ae4ab8ef2bba29c2 (patch)
treebc1a66f9081270b555d4339c363ba1a9e27e6a68 /PKGBUILD
downloadaur-1af45e10315215b8062abcc5ae4ab8ef2bba29c2.tar.gz
initial
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..9bbf6e16a814
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Cody P Schafer <archlinux at codyps.com>
+_bpn=bustle
+pkgname=${_bpn}-git
+pkgver=0.5.4.r2.g0a426c3
+pkgrel=1
+pkgdesc="A dbus profiler"
+arch=(x86_64)
+url="https://www.freedesktop.org/wiki/Software/Bustle/"
+license=('GPLv3')
+groups=()
+depends=(ghc happy alex gtk2hs-buildtools haskell-cairo haskell-dbus haskell-glib haskell-gtk haskell-mtl haskell-pango haskell-parsec haskell-setlocale haskell-pcap haskell-hgettext haskell-gio)
+makedepends=(bzr gnome-common)
+provides=(${_bpn})
+conflicts=(${_bpn})
+replaces=()
+backup=()
+options=(!emptydirs)
+install=
+source=($pkgname::git+https://anongit.freedesktop.org/git/bustle.git)
+md5sums=(SKIP)
+
+pkgver() {
+ cd "$pkgname"
+ git describe --long | sed 's/^bustle-//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$pkgname"
+ runhaskell Setup configure -O --prefix=/usr "--docdir=/usr/share/doc/${pkgname}" --datasubdir="$pkgname"
+ runhaskell Setup build
+}
+
+_ghcver_set() {
+ local _i
+ _ghcver=`pacman -Q ghc | cut -f2 -d\ | cut -f1 -d-`
+ depends[0]="ghc=$_ghcver"
+}
+
+package() {
+ _ghcver_set
+ cd "$pkgname"
+
+ runhaskell Setup copy --destdir=${pkgdir}
+ install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+ rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
+}
+
+# vim:set ts=2 sw=2 et: