summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-01-01 15:32:47 -0200
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-01-01 15:32:47 -0200
commit9d215fdabbac59d3a3f599b29afb491e28852127 (patch)
treec33cc626863f0e70b0acdbd704b0865b13ed19a0 /pcr
parent9114df56ef51d4f9f3e100c19d2f4fe493889d88 (diff)
parent6f102d1647580e0bb9513c124b26a64c77da4f15 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr')
-rw-r--r--pcr/mosquitto/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/pcr/mosquitto/PKGBUILD b/pcr/mosquitto/PKGBUILD
new file mode 100644
index 000000000..0a7209f0b
--- /dev/null
+++ b/pcr/mosquitto/PKGBUILD
@@ -0,0 +1,34 @@
+# This is the PKGBUILD for mosquitto, an MQTT broker and example clients
+# Maintainer: Dan Anderson <dan-anderson@cox.net>
+# Contributor: Gordon JC Pearce <gordon@gjcp.net>
+
+pkgname=mosquitto
+pkgver=1.1
+pkgrel=1
+pkgdesc="An MQTT broker and clients"
+arch=(i686 x86_64 mips64el)
+url="http://mosquitto.org/"
+makedepends=('python')
+optdepends=('python: python support')
+license=('BSD')
+source=(http://mosquitto.org/files/source/$pkgname-$pkgver.tar.gz{,.asc})
+md5sums=('ab51f64eb3f0041402073aa7865f3ec4'
+ '76fbc38a2eb0b8110caf7ac1f43d4057')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+# Remove hardcoded prefix
+ find -name Makefile -exec sed '/prefix=/d' -i {} \;
+
+ make prefix=/usr
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make prefix=/usr DESTDIR="$pkgdir/" install
+
+ install -Dm644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 LICENSE-3rd-party.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE-3rd-party
+}
+
+# vim:set ts=2 sw=2 et: