From 433900b14f11dc9ee55b72e8e5946bf47f65b636 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Mon, 31 Dec 2012 17:29:27 -0300 Subject: Mosquitto is an Open Source MQTT v3.1 Broker --- pcr/mosquitto/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pcr/mosquitto/PKGBUILD 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 +# Contributor: Gordon JC Pearce + +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: -- cgit v1.2.3