diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 14 insertions, 17 deletions
@@ -1,6 +1,6 @@ -# Maintainer: Guillaume Hayot <postblue@postblue.info> +# Maintainer: Guillaume Hayot <ghayot@postblue.info> pkgname=ghost-desktop -pkgver=1.2.1 +pkgver=1.3.0 pkgrel=1 pkgdesc="Ghost Desktop is a beautiful desktop application that allows you to easily manage multiple Ghost blogs and work without distractions." arch=('x86_64' 'i686') @@ -9,35 +9,32 @@ license=('MIT') depends=('gtk2' 'libgnome-keyring' 'gnome-keyring' 'desktop-file-utils' 'python2' 'gconf' 'nodejs' 'libnotify' 'libxtst' 'nss' 'alsa-lib' 'libxss') source=(https://github.com/TryGhost/Ghost-Desktop/releases/download/v${pkgver}/${pkgname}-${pkgver}-debian.deb) install=${pkgname}.install -md5sums=('88c69b144d9a7533a58c6832dcb23a2c') +md5sums=('5dcb77f9d21492fc49d8e83eb9289826') package() { msg2 "Extracting data.tar.xz..." bsdtar -xf data.tar.xz -C "${pkgdir}/" - cd "${pkgdir}" - find -name '*.py' -exec sed -i 's|^#!/usr/bin/env python\s*$|#!/usr/bin/env python2|' {} \; - find -name '*.py' -exec sed -i 's|^#!/usr/bin/python\s*$|#!/usr/bin/python2|' {} \; - + msg2 "Fixing file permissions..." find "${pkgdir}"/usr -type f -exec chmod 644 {} \; find "${pkgdir}"/usr/bin -type f -exec chmod 755 {} \; find "${pkgdir}"/usr -type d -exec chmod 755 {} \; - - mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" - # Cleaning up package + msg2 "Cleaning up package..." rm -rf "${pkgdir}/usr/bin/Ghost" - rm -rf "${pkgdir}/usr/shar/lintian" + rm -rf "${pkgdir}/usr/share/lintian" - # Change paths to match pkgname - mv "${pkgdir}/usr/share/Ghost" "${pkgdir}/usr/share/${pkgname}" + msg2 "Changing paths and names to match package name..." mv "${pkgdir}/usr/share/applications/Ghost.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" sed -i "s/=Ghost/=${pkgname}/" "${pkgdir}/usr/share/applications/${pkgname}.desktop" sed -i "s/Name=ghost-desktop/Name=Ghost Desktop/" "${pkgdir}/usr/share/applications/${pkgname}.desktop" mv "${pkgdir}/usr/share/doc/Ghost" "${pkgdir}/usr/share/doc/${pkgname}" mv "${pkgdir}/usr/share/pixmaps/Ghost.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png" + mv "${pkgdir}/usr/lib/Ghost" "${pkgdir}/usr/lib/${pkgname}" + mv "${pkgdir}/usr/lib/${pkgname}/Ghost" "${pkgdir}/usr/lib/${pkgname}/${pkgname}" - # Fix bin - chmod +x ${pkgdir}/usr/share/${pkgname}/Ghost - ln -s /usr/share/${pkgname}/Ghost "${pkgdir}/usr/bin/${pkgname}" - ln -s /usr/share/${pkgname}/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + msg2 "Fixing exectuable..." + chmod +x "${pkgdir}/usr/lib/${pkgname}/${pkgname}" + ln -s "/usr/lib/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" + mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s "/usr/lib/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |