diff options
author | GoliathLabs | 2020-06-28 22:18:29 +0200 |
---|---|---|
committer | GoliathLabs | 2020-06-28 22:18:29 +0200 |
commit | 8be1de57e4b0cc95bed858d9cc399b3ee7272d07 (patch) | |
tree | 460f59f10e6e1027f130e6b66499edbbd6e6cf30 /PKGBUILD | |
download | aur-marktext-appimage.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..999042078e74 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Edmundo Sanchez <zomundo at gmail dot com> +# Contributor: Felix Golatofski <contact@xdfr.de> + +pkgname=marktext-appimage +pkgver=0.16.2 +pkgrel=1 +pkgdesc='A simple and elegant open-source markdown editor that focused on speed and usability.' +arch=('x86_64') +url='https://marktext.app' +license=('Apache') +depends=('dbus-glib' 'nss' 'libxss' 'libdbusmenu-gtk2' 'libindicator-gtk2' 'gtk3' 'libsecret' 'libxkbfile') +source=( + "https://github.com/marktext/marktext/releases/download/v${pkgver}/marktext-${arch}.AppImage" +) + +sha256sums=('27a35e16099f9019b7bc77955efb096628ffba663f5f5cfb6e674ab1374d6e47') + +prepare() { + chmod u+x ./marktext-${arch}.AppImage + ./marktext-${arch}.AppImage --appimage-extract +} + +package() { + install -dm755 "${pkgdir}/usr/lib" + install -dm755 "${pkgdir}/usr/share" + install -dm755 "${pkgdir}/usr/bin" + install -dm755 "${pkgdir}/usr/share/applications" + + cp -a "${srcdir}/squashfs-root" "${pkgdir}/usr/lib/${pkgname}" + find "${pkgdir}/usr/lib/${pkgname}" -type d -exec chmod 755 "{}" \; + + cp -a "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share" + chmod -R 755 "${pkgdir}/usr/share/icons" + + sed -i -e "s/AppRun/${pkgname}/" "${pkgdir}/usr/lib/${pkgname}/marktext.desktop" + ln -s "/usr/lib/${pkgname}/marktext.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" + ln -s "/usr/lib/${pkgname}/marktext" "${pkgdir}/usr/bin/${pkgname}" +} |