diff options
author | Excitable Snowball | 2019-04-15 23:43:22 -0700 |
---|---|---|
committer | Excitable Snowball | 2019-04-16 00:39:16 -0700 |
commit | 024076a62e0e2e18bfc6dc1099e89ab6ff12d9c7 (patch) | |
tree | 1c9d7cd8129b362b584d54dcd76e3f8197a84279 /PKGBUILD | |
parent | 196db8cca5002f9acec71208433a847006a801e2 (diff) | |
download | aur-024076a62e0e2e18bfc6dc1099e89ab6ff12d9c7.tar.gz |
Adopt changes from robertfoster
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 17 insertions, 7 deletions
@@ -1,5 +1,6 @@ # Maintainer: Excitable Snowball <excitablesnowball@gmail.com> +_name=WebPlotDigitizer pkgname=webplotdigitizer-bin pkgver=4.1 pkgrel=1 @@ -7,13 +8,22 @@ pkgdesc='Tool to extract numerical data from plot images' url='https://automeris.io/WebPlotDigitizer/' arch=('x86_64') license=('AGPL3') -depends=() -source=('https://automeris.io/downloads/WebPlotDigitizer-4.1-linux-x64.zip') -md5sums=('6d6b74f94f5922cfe9b24a1dbe035edd') -sha256sums=('7cfffa19d160c07df71121fe005fdcdb1fdd48dd3e70fb391dcbe5ca529bafd8') +depends=('alsa-lib' 'gconf' 'gtk2' 'libxss' 'libxtst' 'nss') +source=("https://automeris.io/downloads/${_name}-$pkgver-linux-x64.zip" + "${pkgname%%-bin}.desktop") +md5sums=('6d6b74f94f5922cfe9b24a1dbe035edd' + 'bbb5539842f94b8e986ba31c5f564003') +sha256sums=('7cfffa19d160c07df71121fe005fdcdb1fdd48dd3e70fb391dcbe5ca529bafd8' + '30ddc4aef0b82c9b22dc9aeb9dbacd7cf3dd60cd1805cdc9db01da3db9a1ceef') package() { - mkdir -p "$pkgdir/opt" "$pkgdir/usr/bin" - cp -r WebPlotDigitizer-linux-x64 "$pkgdir/opt/WebPlotDigitizer" - ln -s /opt/WebPlotDigitizer/WebPlotDigitizer "$pkgdir/usr/bin/WebPlotDigitizer" + mkdir -p "$pkgdir/usr/bin" + mkdir -p "$pkgdir/opt" + + cd "$srcdir" + cp -r "${_name}-linux-x64" "$pkgdir/opt/${pkgname%%-bin}" + ln -s "/opt/${pkgname%%-bin}/${_name}" "$pkgdir/usr/bin/${pkgname%%-bin}" + + install -Dm644 "$pkgdir/opt/${pkgname%%-bin}/resources/app/images/icon/icon.svg" "$pkgdir/usr/share/pixmaps/${pkgname%%-bin}.svg" + install -Dm644 "${pkgname%%-bin}.desktop" "$pkgdir/usr/share/applications/${pkgname%%-bin}.desktop" } |