summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorvvxxp82020-12-28 14:04:42 +0800
committervvxxp82020-12-28 14:04:42 +0800
commit5baf8505195af34c8a397278c5733c54c0e4c973 (patch)
treeb59feb7a6ba5f20967b6ea4048786230093e477e
parent95c6bb508308a16cc1dd583516a5a0abd96d9714 (diff)
downloadaur-5baf8505195af34c8a397278c5733c54c0e4c973.tar.gz
change install dir
-rw-r--r--PKGBUILD10
1 files changed, 6 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a1312d055d6..4ec83ae5abf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,6 @@
# Maintainer: vvxxp8 <concatenate[g] the characters[x] in square[b] brackets[1] in[5] order[3] at gmail dot com
pkgname=cajviewer-appimage
-_installdir=/opt/${pkgname}
pkgver=201021
pkgrel=1
pkgdesc="CAJViewer for Linux"
@@ -15,17 +14,20 @@ conflicts=('cajviewer')
source=("https://download.cnki.net/${_pkgname}")
sha512sums=("04c702e563587bda4c924fb554f0aef3e63a3dff088b2cecbf21c03723352595b3d0adfe14bedd2c875960dd64c69f5e6c4318684d9bbcd60e7ec5f2fe613bc9")
+_installdir=/opt/appimages
+_installname=cajviewer
+
prepare() {
cd "${srcdir}"
chmod a+x ${_pkgname}
${srcdir}/${_pkgname} --appimage-extract
- sed -i "s+Exec=cajviewer+Exec=env DESKTOPINTEGRATION=no ${_installdir}/cajviewer.AppImage+" "squashfs-root/cajviewer.desktop"
+ sed -i "s+Exec=cajviewer+Exec=env DESKTOPINTEGRATION=no ${_installdir}/${_installname}.AppImage+" "squashfs-root/${_installname}.desktop"
find "squashfs-root/usr/share/icons/hicolor" -type d -exec chmod 755 {} \;
}
package() {
install -dm755 "${pkgdir}/usr/share/icons"
- install -Dm755 ${_pkgname} "${pkgdir}/${_installdir}/cajviewer.AppImage"
- install -Dm644 "squashfs-root/cajviewer.desktop" "${pkgdir}/usr/share/applications/cajviewer.desktop"
+ install -Dm755 ${_pkgname} "${pkgdir}/${_installdir}/${_installname}.AppImage"
+ install -Dm644 "squashfs-root/${_installname}.desktop" "${pkgdir}/usr/share/applications/${_installname}.desktop"
cp -R "squashfs-root/usr/share/icons/hicolor" "${pkgdir}/usr/share/icons"
}