diff options
author | Renaud LITTOLFF | 2017-04-06 09:52:47 +0200 |
---|---|---|
committer | Renaud LITTOLFF | 2017-04-06 09:52:47 +0200 |
commit | 7e829cee433d6c5d10a6e20b9ef139d11e0afb51 (patch) | |
tree | afb23c7f430dc6f50f4c78e7e6ea4f31b3d93aa0 | |
parent | 2987690887e4c599561c40da4baa4e883d9fe840 (diff) | |
download | aur-7e829cee433d6c5d10a6e20b9ef139d11e0afb51.tar.gz |
Fix insomnia 5.0.x on ArchLinux
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 19 | ||||
-rwxr-xr-x | insomnia.sh | 2 |
3 files changed, 13 insertions, 12 deletions
@@ -1,7 +1,7 @@ pkgbase = insomnia pkgdesc = A simple and beautiful REST API and HTTP client pkgver = 5.0.1 - pkgrel = 1 + pkgrel = 2 url = http://insomnia.rest/ arch = x86_64 depends = libcurl-compat @@ -10,7 +10,7 @@ pkgbase = insomnia source = https://downloads.insomnia.rest/linux/insomnia_5.0.1_amd64.deb source = insomnia.sh md5sums = 7f44b1f6807e8aabd5d018a2a9eb3ad8 - md5sums = 7c5c262829ac604b83452874e6631ff8 + md5sums = a1f02a6e1658e95218fca636ea56f5a3 pkgname = insomnia @@ -3,7 +3,7 @@ pkgname=insomnia pkgver=5.0.1 -pkgrel=1 +pkgrel=2 pkgdesc="A simple and beautiful REST API and HTTP client" arch=('x86_64') url="http://insomnia.rest/" @@ -17,26 +17,27 @@ source=( package() { # Define some helpers - SCRIPT_PATH=${pkgdir}/opt/Insomnia/start-insomnia.sh + SCRIPT_PATH=${pkgdir}/opt/Insomnia/insomnia # Extract the core package tar -xf data.tar.xz -C "${pkgdir}" - # Install the necessary parts - install -d ${pkgdir}/usr/share/applications - install -d ${pkgdir}/usr/share/icons - install -d ${pkgdir}/opt/Insomnia - # Setup usr folder chmod -R go-w ${pkgdir}/usr mkdir -p ${pkgdir}/usr/bin # Setup the start script and permissions + mv ${pkgdir}/opt/Insomnia/insomnia ${pkgdir}/opt/Insomnia/insomnia.bin cp ${srcdir}/insomnia.sh ${SCRIPT_PATH} chmod 755 ${SCRIPT_PATH} - ln -s ${SCRIPT_PATH} ${pkgdir}/usr/bin/insomnia + ln -s /opt/Insomnia/insomnia ${pkgdir}/usr/bin/insomnia + + # Install the necessary parts + install -d ${pkgdir}/usr/share/applications + install -d ${pkgdir}/usr/share/icons + install -d ${pkgdir}/opt/Insomnia } # Generated by `$ makepkg -g >> PKGBUILD` md5sums=('7f44b1f6807e8aabd5d018a2a9eb3ad8' - '7c5c262829ac604b83452874e6631ff8') + 'a1f02a6e1658e95218fca636ea56f5a3') diff --git a/insomnia.sh b/insomnia.sh index 18fe7a879b3a..7e039425eb63 100755 --- a/insomnia.sh +++ b/insomnia.sh @@ -1,3 +1,3 @@ #!/bin/sh -LD_PRELOAD=/usr/lib/libcurl.so.3 /opt/insomnia/insomnia +LD_PRELOAD=/usr/lib/libcurl.so.3 /opt/Insomnia/insomnia.bin |