blob: ac526e5e5b5eec6b10e2064c41e14e47ee95fdd8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# This is the PKGBUILD for mosquitto, an MQTT broker and example clients
# Maintainer (Arch): Tomáš Mládek <tmladek{at}inventati{dt}org>
# Contributor (Arch): Dan Anderson <dan-anderson at cox dptnet>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=mosquitto
pkgver=1.4.5
pkgrel=1
pkgdesc="An Open Source MQTT v3.1 Broker"
arch=('i686' 'x86_64' 'armv7h')
url="http://mosquitto.org/"
depends=('openssl' 'c-ares')
makedepends=('python' 'docbook-xsl' 'c-ares')
conflicts=('mosquitto-hg')
provides=('mosquitto')
license=('BSD')
source=(http://mosquitto.org/files/source/$pkgname-$pkgver.tar.gz{,.asc} "$pkgname.service" "$pkgname.install" "usr_move.patch")
install=$pkgname.install
sha256sums=('b432e19fee0c549f4a0fb0e866d1b6a897b38dbf1ddfda92bb43e2a24f01df66'
'SKIP'
'b09c9852b5b438bad8dd54b3ac665bb0d05d1a9e4daf8c920956457c83622b64'
'09b8a17fc59f36f40ead4644fffc95458a9255c32d4848f39ceca05925dcc95b'
'c436bcc5a61d923ab36d5b3f24e5f628bf18ef14c2f351633d58ca983b5f655c')
validpgpkeys=('A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7')
build() {
cd "$srcdir/$pkgname-$pkgver"
patch -p1 < ../usr_move.patch
make
}
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"
echo 'pid_file /run/mosquitto.pid' >> "$pkgdir/etc/mosquitto/mosquitto.conf.example"
# license files
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|