summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD24
1 files changed, 12 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 290f7114af7..3e0fa4e8437 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Victor Zamanian <victor.zamanian@gmail.com>
-
-pkgname=pomotroid
+_pkgname=pomotroid
+pkgname="${_pkgname}-bin"
pkgver=0.6.2
_appimage="${pkgname}-${pkgver}.AppImage"
pkgrel=1
@@ -12,7 +12,7 @@ license=('MIT')
depends=('zlib' 'hicolor-icon-theme')
options=(!strip)
source_x86_64=(
- "${_appimage}::${url}/releases/download/v${pkgver}/${pkgname}-${pkgver}-${arch}.AppImage"
+ "${_appimage}::${url}/releases/download/v${pkgver}/${_pkgname}-${pkgver}-${arch}.AppImage"
"https://raw.githubusercontent.com/Splode/pomotroid/master/LICENSE"
)
noextract=("${_appimage}")
@@ -28,20 +28,20 @@ prepare() {
build() {
# Adjust .desktop so it will work outside of AppImage container
- sed -i -E "s|Exec=AppRun|Exec=env DESKTOPINTEGRATION=false /usr/bin/${pkgname}|"\
- "squashfs-root/${pkgname}.desktop"
+ sed -i -E "s|Exec=AppRun|Exec=env DESKTOPINTEGRATION=false /usr/bin/${_pkgname}|"\
+ "squashfs-root/${_pkgname}.desktop"
# Fix permissions; .AppImage permissions are 700 for all directories
chmod -R a-x+rX squashfs-root/usr
}
package() {
# AppImage
- install -Dm755 "${srcdir}/${_appimage}" "${pkgdir}/opt/${pkgname}/${pkgname}.AppImage"
- install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/opt/${pkgname}/LICENSE"
+ install -Dm755 "${srcdir}/${_appimage}" "${pkgdir}/opt/${_pkgname}/${_pkgname}.AppImage"
+ install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/opt/${_pkgname}/LICENSE"
# Desktop file
- install -Dm644 "${srcdir}/squashfs-root/${pkgname}.desktop"\
- "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ install -Dm644 "${srcdir}/squashfs-root/${_pkgname}.desktop"\
+ "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
# Icon images
install -dm755 "${pkgdir}/usr/share"
@@ -49,9 +49,9 @@ package() {
# Symlink executable
install -dm755 "${pkgdir}/usr/bin"
- ln -s "/opt/${pkgname}/${pkgname}.AppImage" "${pkgdir}/usr/bin/${pkgname}"
+ ln -s "/opt/${_pkgname}/${_pkgname}.AppImage" "${pkgdir}/usr/bin/${_pkgname}"
# Symlink license
- install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
- ln -s "/opt/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
+ install -dm755 "${pkgdir}/usr/share/licenses/${_pkgname}"
+ ln -s "/opt/${_pkgname}/LICENSE" "$pkgdir/usr/share/licenses/${_pkgname}"
}