summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSander Danielsen2017-03-15 10:14:29 +0100
committerSander Danielsen2017-03-15 10:14:29 +0100
commitf098fc3a6c97709eea78492d079734f4c1be3690 (patch)
tree241ad3dcaf62b33675aa984e8bc30954a6cf8898
downloadaur-f098fc3a6c97709eea78492d079734f4c1be3690.tar.gz
Initial Commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD34
-rw-r--r--aprx.service13
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c4e5718fd24
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = aprx
+ pkgdesc = An APRS Digipeater and/or Internet Gateway
+ pkgver = 2.9.0
+ pkgrel = 1
+ url = http://thelifeofkenneth.com/aprx/
+ arch = any
+ license = custom
+ depends = glibc
+ backup = etc/aprx.conf
+ source = http://thelifeofkenneth.com/aprx/release/aprx-2.9.0.tar.gz
+ source = aprx.service
+ sha256sums = 28841b15310459ba8b7d9a47b49c9d2c0105924bdf9ef32f0095c300f7dbf887
+ sha256sums = ef586aa9c5f7dfc70e6631e60648764738923ccb1374732f7ae356d4789e69c5
+
+pkgname = aprx
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4c191e74f57
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Sander Danielsen <thelugal at gmail dot com>
+# Contributor: CarstenF <archlinux at carstenfeuls dot de>
+pkgname=aprx
+pkgver=2.9.0
+pkgrel=1
+pkgdesc="An APRS Digipeater and/or Internet Gateway"
+arch=('any')
+url="http://thelifeofkenneth.com/aprx/"
+license=('custom')
+depends=('glibc')
+backup=('etc/aprx.conf')
+source=("http://thelifeofkenneth.com/$pkgname/release/$pkgname-$pkgver.tar.gz"
+ 'aprx.service')
+sha256sums=('28841b15310459ba8b7d9a47b49c9d2c0105924bdf9ef32f0095c300f7dbf887'
+ 'ef586aa9c5f7dfc70e6631e60648764738923ccb1374732f7ae356d4789e69c5')
+
+build() {
+# For a small memory system without writeable /tmp add --with-embedded
+ cd "$pkgname-$pkgver"
+ ./configure --prefix=/usr -mandir=/usr/share/man #--with-embedded
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ mkdir -p "${pkgdir}/usr/lib/systemd/system"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ make DESTDIR="$pkgdir/" install
+ cp ${srcdir}/aprx.service ${pkgdir}/usr/lib/systemd/system
+ mkdir -p "${pkgdir}/usr/bin"
+ mv ${pkgdir}/sbin/* ${pkgdir}/usr/bin
+ rmdir ${pkgdir}/sbin
+}
+
diff --git a/aprx.service b/aprx.service
new file mode 100644
index 00000000000..5bdc061ba87
--- /dev/null
+++ b/aprx.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=An APRS Digipeater and/or Internet Gateway
+After=network.target
+After=sound.target
+
+[Service]
+Type=forking
+ExecStart=/bin/su -s /bin/bash -l -c "/usr/bin/aprx"
+Restart=always
+PIDFile=/run/aprx.pid
+
+[Install]
+WantedBy=multi-user.target