blob: 09e47db610406c582bd298bfdf55a0e53b515835 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Edmundo Sanchez <zomundo at gmail dot com>
pkgname=marktext-appimg
pkgver=0.17.1
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=('2e2555113e37df830ba3958efcccce7020907b12fd4162368cfd906aeda630b7')
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}"
}
|