summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcaltlgin2020-11-15 13:00:09 +1300
committercaltlgin2020-11-15 13:00:09 +1300
commit9bc9a9585c923b4874793ab751c22b7b3cc4ae0c (patch)
tree23006abb70a3ca716bf1df33b5d009922a2857bf
downloadaur-9bc9a9585c923b4874793ab751c22b7b3cc4ae0c.tar.gz
Add to AUR
-rw-r--r--.SRCINFO23
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD54
-rw-r--r--rest-client.pngbin0 -> 86524 bytes
4 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4b3823af48e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = rest-client-bin
+ pkgdesc = Tool to test HTTP/RESTful webservices
+ pkgver = 3.7.1
+ pkgrel = 1
+ url = https://github.com/wiztools/rest-client
+ arch = any
+ license = APACHE
+ makedepends = imagemagick
+ depends = hicolor-icon-theme
+ depends = java-runtime
+ provides = rest-client
+ conflicts = rest-client
+ noextract = restclient-cli-fat-3.7.1.jar
+ noextract = restclient-ui-fat-3.7.1.jar
+ source = https://github.com/wiztools/rest-client/releases/download/3.7.1/restclient-cli-fat-3.7.1.jar
+ source = https://github.com/wiztools/rest-client/releases/download/3.7.1/restclient-ui-fat-3.7.1.jar
+ source = rest-client.png
+ sha256sums = f85f2c0d516f1834745e50567f6f347b30de0531a2aca8f5476f0f973f9fe819
+ sha256sums = ea575df3f96841fbe6a294c04e0357a75f3541dab8d418e0f49e43a393a3daee
+ sha256sums = 6a00823d6a558919ff9c003546d09acab7f0b5b85bc003ebca9694618925e23d
+
+pkgname = rest-client-bin
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..76c90ee1df6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*
+!.gitignore
+!.SRCINFO
+!PKGBUILD
+!rest-client.png
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..115d665c404
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
+
+_name='RESTClient'
+_pkgname='rest-client'
+pkgname="${_pkgname}-bin"
+pkgver=3.7.1
+pkgrel=1
+pkgdesc='Tool to test HTTP/RESTful webservices'
+arch=('any')
+url='https://github.com/wiztools/rest-client'
+license=('APACHE')
+depends=('hicolor-icon-theme' 'java-runtime')
+makedepends=('imagemagick')
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+noextract=("${_pkgname/-/}-cli-fat-${pkgver}.jar"
+ "${_pkgname/-/}-ui-fat-${pkgver}.jar")
+source=("${url}/releases/download/${pkgver}/${_pkgname/-/}-cli-fat-${pkgver}.jar"
+ "${url}/releases/download/${pkgver}/${_pkgname/-/}-ui-fat-${pkgver}.jar"
+ "${_pkgname}.png")
+sha256sums=('f85f2c0d516f1834745e50567f6f347b30de0531a2aca8f5476f0f973f9fe819'
+ 'ea575df3f96841fbe6a294c04e0357a75f3541dab8d418e0f49e43a393a3daee'
+ '6a00823d6a558919ff9c003546d09acab7f0b5b85bc003ebca9694618925e23d')
+
+prepare() {
+ echo -e "#!/bin/sh\ncd /usr/share/${_pkgname} && java -jar ./${_pkgname}-cli.jar" > "${_pkgname}-cli"
+ echo -e "#!/bin/sh\ncd /usr/share/${_pkgname} && java -jar ./${_pkgname}-ui.jar" > "${_pkgname}-ui"
+ cat << EOF > "${_pkgname}.desktop"
+[Desktop Entry]
+Name=${_name}
+Comment=${pkgdesc}
+Icon=${_pkgname}
+Type=Application
+Exec=${_pkgname}-ui
+Categories=Development;
+Encoding=UTF-8
+EOF
+}
+
+package() {
+ install -Dvm755 "${_pkgname}-cli" -t "${pkgdir}/usr/bin"
+ install -Dvm755 "${_pkgname}-ui" -t "${pkgdir}/usr/bin"
+ install -Dvm644 "${_pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
+
+ for i in 16 22 24 32 48 64 96 128 256 512; do
+ convert "${_pkgname}.png" -resize "${i}x${i}" "icon${i}.png"
+ install -Dvm644 "icon${i}.png" "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/${_pkgname}.png"
+ done
+
+ install -Dvm755 "${_pkgname/-/}-cli-fat-${pkgver}.jar" "${pkgdir}/usr/share/${_pkgname}/${_pkgname}-cli.jar"
+ install -Dvm755 "${_pkgname/-/}-ui-fat-${pkgver}.jar" "${pkgdir}/usr/share/${_pkgname}/${_pkgname}-ui.jar"
+}
+
+# vim: ts=2 sw=2 et:
diff --git a/rest-client.png b/rest-client.png
new file mode 100644
index 00000000000..0fe9e20792e
--- /dev/null
+++ b/rest-client.png
Binary files differ