diff options
author | Adam Goldsmith | 2018-03-07 14:51:14 -0500 |
---|---|---|
committer | Adam Goldsmith | 2018-03-07 14:51:14 -0500 |
commit | 207275585f03a39a4d94c2d1beb46ab830e7ffe0 (patch) | |
tree | b0216cf24fa9dc4bba3d48ef76a75dc5910c75d6 | |
download | aur-207275585f03a39a4d94c2d1beb46ab830e7ffe0.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 28 |
3 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e97072133d11 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = serial-port-json-server + pkgdesc = A websocket server for your serial devices. (generally used for chilipeppr) + pkgver = 1.95 + pkgrel = 1 + url = https://github.com/chilipeppr/serial-port-json-server + arch = i686 + arch = x86_64 + arch = arm + license = GPL2 + source_i686 = serial-port-json-server-1.95.tar.gz::https://github.com/chilipeppr/serial-port-json-server/releases/download/v1.95/serial-port-json-server-1.95_linux_386.tar.gz + md5sums_i686 = 6ab2d789ec8b279b5ada0e9f8c8e0d46 + source_x86_64 = serial-port-json-server-1.95.tar.gz::https://github.com/chilipeppr/serial-port-json-server/releases/download/v1.95/serial-port-json-server-1.95_linux_amd64.tar.gz + md5sums_x86_64 = cee9a0c8a849327c2030688cc8d41e9d + source_arm = serial-port-json-server-1.95.tar.gz::https://github.com/chilipeppr/serial-port-json-server/releases/download/v1.95/serial-port-json-server-1.95_linux_arm.tar.gz + md5sums_arm = 1ba3f4df57673b0347d830b329e62305 + +pkgname = serial-port-json-server + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b376b7458528 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/pkg +/src +*.tar.gz +*.pkg.tar* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4fe2be217903 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Adam Goldsmith <contact@adamgoldsmith.name> + +pkgname=serial-port-json-server +pkgver=1.95 +pkgrel=1 +pkgdesc="A websocket server for your serial devices. (generally used for chilipeppr)" +arch=('i686' 'x86_64' 'arm') +url="https://github.com/chilipeppr/serial-port-json-server" +license=('GPL2') + +source_arm=(${pkgname}-$pkgver.tar.gz::https://github.com/chilipeppr/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}_linux_arm.tar.gz) +source_i686=(${pkgname}-$pkgver.tar.gz::https://github.com/chilipeppr/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}_linux_386.tar.gz) +source_x86_64=(${pkgname}-$pkgver.tar.gz::https://github.com/chilipeppr/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}_linux_amd64.tar.gz) +md5sums_i686=('6ab2d789ec8b279b5ada0e9f8c8e0d46') +md5sums_x86_64=('cee9a0c8a849327c2030688cc8d41e9d') +md5sums_arm=('1ba3f4df57673b0347d830b329e62305') + +package() { + if [ $CARCH == "arm" ]; then _arch="arm" + elif [ $CARCH == "i686" ]; then _arch="386" + elif [ $CARCH == "x86_64" ]; then _arch="amd64" + fi + cd "${srcdir}/${pkgname}-${pkgver}_linux_${_arch}" + + install -Dm755 serial-port-json-server "${pkgdir}/usr/bin/serial-port-json-server" +} + +# vim:set ts=2 sw=2 et: |