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