summarylogtreecommitdiffstats
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
downloadaur-1af45e10315215b8062abcc5ae4ab8ef2bba29c2.tar.gz
initial
-rw-r--r--.SRCINFO32
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD48
3 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a6c81306d91
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+pkgbase = bustle-git
+ pkgdesc = A dbus profiler
+ pkgver = 0.5.4.r2.g0a426c3
+ pkgrel = 1
+ url = https://www.freedesktop.org/wiki/Software/Bustle/
+ arch = x86_64
+ license = GPLv3
+ makedepends = bzr
+ makedepends = gnome-common
+ depends = ghc
+ depends = happy
+ depends = alex
+ depends = gtk2hs-buildtools
+ depends = haskell-cairo
+ depends = haskell-dbus
+ depends = haskell-glib
+ depends = haskell-gtk
+ depends = haskell-mtl
+ depends = haskell-pango
+ depends = haskell-parsec
+ depends = haskell-setlocale
+ depends = haskell-pcap
+ depends = haskell-hgettext
+ depends = haskell-gio
+ provides = bustle
+ conflicts = bustle
+ options = !emptydirs
+ source = bustle-git::git+https://anongit.freedesktop.org/git/bustle.git
+ md5sums = SKIP
+
+pkgname = bustle-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..ed38590ecae
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg/
+src/
+*.tar.*
+bustle-git/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9bbf6e16a81
--- /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: