summaryrefslogtreecommitdiff
path: root/pcr/mosquitto/PKGBUILD
blob: 2f765ad13c6ea7c0c00be079893f7ed2cf4c68b2 (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
# 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: