summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Harrison2020-11-24 10:14:40 -0500
committerMatt Harrison2020-11-24 10:14:40 -0500
commitc27850b15d0d5c330605a5fd364fcffe62bf0dc4 (patch)
tree626e4b149104ccc61ed6ad53781cfcb2f4380c47
downloadaur-c27850b15d0d5c330605a5fd364fcffe62bf0dc4.tar.gz
Initial upload: mpd-pulse 0.1.0-1
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD30
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2cf30e6fcca
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = mpd-pulse
+ pkgdesc = Open-source Modbus TCP to Modbus RTU (RS-232/485) gateway.
+ pkgver = 0.1.0
+ pkgrel = 1
+ url = https://github.com/matt-h/mpd-pulse
+ arch = x86_64
+ arch = i686
+ arch = armv7h
+ license = MIT
+ makedepends = cargo
+ depends = libpulse
+ depends = mpc
+ source = mpd-pulse-0.1.0.tar.gz::https://github.com/matt-h/mpd-pulse/archive/0.1.0.tar.gz
+ sha256sums = 80a37bf077e79df8476e9c4fa8499694ea78060f6f7630ffa0687e9364bcd1d7
+
+pkgname = mpd-pulse
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..44d1be2b2fb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Matt Harrison <matt@harrison.us.com>
+# Maintained at: https://github.com/matt-h/aur-pkgbuilds
+
+pkgname=mpd-pulse
+pkgver=0.1.0
+pkgrel=1
+pkgdesc="Open-source Modbus TCP to Modbus RTU (RS-232/485) gateway."
+arch=('x86_64' 'i686' 'armv7h')
+url="https://github.com/matt-h/mpd-pulse"
+license=('MIT')
+depends=('libpulse' 'mpc')
+makedepends=('cargo')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/matt-h/${pkgname}/archive/${pkgver}.tar.gz")
+sha256sums=('80a37bf077e79df8476e9c4fa8499694ea78060f6f7630ffa0687e9364bcd1d7')
+
+build() {
+ cd "$srcdir/${pkgname}-${pkgver}"
+ cargo build --release --locked
+}
+
+check() {
+ cd "$srcdir/${pkgname}-${pkgver}"
+ cargo test --release --locked
+}
+
+package() {
+ install -Dm 755 "$srcdir/${pkgname}-${pkgver}/target/release/${pkgname}" -t "${pkgdir}/usr/bin"
+ install -Dm644 "$srcdir/${pkgname}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 "$srcdir/${pkgname}-${pkgver}/system/mpd-pulse.service" "$pkgdir/usr/lib/systemd/user/${pkgname}.service"
+}