summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD46
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..936a37ad177
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = mqtt-sn-tools
+ pkgdesc = Command line tools written in C for the MQTT-SN (MQTT For Sensor Networks) protocol
+ pkgver = 0.0.6
+ pkgrel = 1
+ url = Command line tools written in C for the MQTT-SN (MQTT For Sensor Networks) protocol
+ arch = x86_64
+ arch = armv7h
+ license = MIT
+ license = custom:LICENSE.md
+ depends = glibc
+ source = https://github.com/njh/mqtt-sn-tools/releases/download/0.0.6/mqtt-sn-tools-0.0.6.tar.gz
+ sha256sums = 107d762dcd9fe01dc2229dab480765224f10b027cb6dcb273a7a0987298c788a
+
+pkgname = mqtt-sn-tools
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e1576ff96f7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# This is an example PKGBUILD file. Use this as a start to creating your own,
+# and remove these comments. For more information, see 'man PKGBUILD'.
+# NOTE: Please fill out the license field for your package! If it is unknown,
+# then please put 'unknown'.
+
+# Maintainer: Giampaolo Mancini <mancho@trmpln.com>
+pkgname=mqtt-sn-tools
+pkgver=0.0.6
+pkgrel=1
+epoch=
+pkgdesc="Command line tools written in C for the MQTT-SN (MQTT For Sensor Networks) protocol"
+arch=("x86_64" "armv7h")
+url="Command line tools written in C for the MQTT-SN (MQTT For Sensor Networks) protocol "
+license=('MIT' 'custom:LICENSE.md')
+groups=()
+depends=("glibc")
+makedepends=()
+checkdepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=("https://github.com/njh/mqtt-sn-tools/releases/download/$pkgver/$pkgname-$pkgver.tar.gz")
+noextract=()
+sha256sums=("107d762dcd9fe01dc2229dab480765224f10b027cb6dcb273a7a0987298c788a")
+validpgpkeys=()
+
+prepare() {
+ cd "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ make prefix="usr" DESTDIR="$pkgdir/" install
+ install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
+}