diff options
author | Edmundo Sanchez | 2020-06-16 15:12:13 -0500 |
---|---|---|
committer | Edmundo Sanchez | 2020-06-16 15:12:13 -0500 |
commit | 092028a0a9853afd55b4ebaec3179e5973f815ea (patch) | |
tree | 2f40df9c7ee0911568b84791822fdc9992da670a | |
download | aur-092028a0a9853afd55b4ebaec3179e5973f815ea.tar.gz |
marktext package v1
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | readme.md | 8 |
4 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cca40846ed86 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = marktext-bin + pkgdesc = A simple and elegant open-source markdown editor that focused on speed and usability. + pkgver = 0.16.1 + pkgrel = 1 + url = https://marktext.app + arch = x86_64 + license = Apache + depends = dbus-glib + depends = nss + depends = libxss + depends = libdbusmenu-gtk2 + depends = libindicator-gtk2 + depends = gtk3 + depends = libsecret + depends = libxkbfile + source = https://github.com/marktext/marktext/releases/download/v0.16.1/marktext-x86_64.AppImage + sha256sums = 373080e22e6c0aa9fa9394c91b6cf1036898a17595e629983912bbced89653ec + +pkgname = marktext-bin + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..448686cdc6e4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +marktext* +pkg/ +src/
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..34d4bec10520 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Edmundo Sanchez <zomundo at gmail dot com> +pkgname=marktext-bin +pkgver=0.16.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=('373080e22e6c0aa9fa9394c91b6cf1036898a17595e629983912bbced89653ec') + +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}" +}
\ No newline at end of file diff --git a/readme.md b/readme.md new file mode 100644 index 000000000000..60163ab13358 --- /dev/null +++ b/readme.md @@ -0,0 +1,8 @@ +# Biscuit + +## Always + +Generate .SRCINFO + +`makepkg --printsrcinfo > .SRCINFO` + |