diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2cf30e6fcca9 --- /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 000000000000..44d1be2b2fb8 --- /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" +} |