diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-18 01:56:34 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-18 01:56:34 +0000 |
commit | 8185891e28635bdb83fdf4ba4391030912dae596 (patch) | |
tree | 66a946535bdd228514750233b2cc99dd1866ff64 /pcr/mosquitto/PKGBUILD | |
parent | 60a11f87366fdfbd114cdc91ff813518858e5f8d (diff) |
Tue Feb 18 01:56:27 UTC 2014
Diffstat (limited to 'pcr/mosquitto/PKGBUILD')
-rw-r--r-- | pcr/mosquitto/PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pcr/mosquitto/PKGBUILD b/pcr/mosquitto/PKGBUILD new file mode 100644 index 000000000..2f765ad13 --- /dev/null +++ b/pcr/mosquitto/PKGBUILD @@ -0,0 +1,44 @@ +# This is the PKGBUILD for mosquitto, an MQTT broker and example clients +# Maintainer: Alexander Rust <mail at alr dot st> +# Contributor: Dan Anderson <dan-anderson at cox dptnet> + +pkgname=mosquitto +pkgver=1.1.3 +pkgrel=3 +pkgdesc="An Open Source MQTT v3.1 Broker" +arch=('i686' 'x86_64' 'arm' 'armv6h' 'mips64el') +url="http://mosquitto.org/" +makedepends=('python') +optdepends=('python: python support') +license=('BSD') +source=(http://mosquitto.org/files/source/$pkgname-$pkgver.tar.gz{,.asc} "$pkgname.service" + "binmerge.patch") +md5sums=('fd0cae17221d778b0a002c31e6c3de9e' + 'SKIP' + '58af79ed48be928f91e5435cda82bb8b' + '27e24b672d63b797f0e026ab85c64c4b') + +prepare() { + cd "$srcdir/$pkgname-$pkgver/src" + patch -N -i ${srcdir}/binmerge.patch +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + + make prefix=/usr +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make prefix=/usr DESTDIR="$pkgdir/" install + + # Systemd service file + install -Dm644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service + + # License files + 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: |