diff options
author | taotieren | 2021-03-02 23:40:16 +0800 |
---|---|---|
committer | taotieren | 2021-03-02 23:40:16 +0800 |
commit | 5dcdcaa8075a2bc4223101d20f9716257d7cb6f2 (patch) | |
tree | f49a377e2cd0a226d3166665aee336000be670e4 | |
download | aur-5dcdcaa8075a2bc4223101d20f9716257d7cb6f2.tar.gz |
Update mark-mind
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | .gitignore | 22 | ||||
-rw-r--r-- | PKGBUILD | 55 | ||||
-rw-r--r-- | mark-mind.desktop | 10 |
4 files changed, 106 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..13c711094ed3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = mark-mind + pkgdesc = Mark Mind — Next generation mind map editor + pkgver = 1.1.9 + pkgrel = 1 + url = https://github.com/MarkMindLtd/Mark-Mind + arch = any + license = MIT + makedepends = coreutils + provides = mark-mind + conflicts = mark-mind + replaces = mark-mind + options = !strip + source = Mark-Mind-1.1.9.AppImage::https://github.com/MarkMindLtd/Mark-Mind/releases/download/v1.1.9/Mark.Mind-1.1.9.AppImage + source = mark-mind.desktop + sha256sums = b1bfeb234778cb53c1c40d25ea72a01e3aa238f3badb1555caac7f44593ec59e + sha256sums = e726247f694723f9c8cec971efa8eabe321b4341df06c0de6157581ecb285764 + +pkgname = mark-mind + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..87701a6e798f --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +*.tar.zst +*.AppImage +src/ + +# ignore everything +* +!.gitignore + +# except PKGBUILD needed files +!PKGBUILD +!.SRCINFO +!*.install +!ChangeLog + +# common wing-man files +!*.diff +!*.patch + +!README.md +!*.desktop + +# add files that don't have an online source diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2ee7211644e4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: taotieren <admin@taotieren.com> + +_pkgname=Mark-Mind +_gitpkgname=Mark.Mind +_oldpkgname=mind +pkgname=mark-mind +pkgver=1.1.9 +pkgrel=1 +pkgdesc="Mark Mind — Next generation mind map editor" +arch=('any') +url="https://github.com/MarkMindLtd/Mark-Mind" +license=('MIT') +provides=(${pkgname}) +conflicts=(${pkgname}) +replaces=(${pkgname}) +depends=() +makedepends=('coreutils') +backup=() +options=('!strip') +source=("${_pkgname}-${pkgver}.AppImage::https://github.com/MarkMindLtd/${_pkgname}/releases/download/v${pkgver//_/-}/${_gitpkgname}-${pkgver}.AppImage" + "${pkgname}.desktop") +sha256sums=( + 'b1bfeb234778cb53c1c40d25ea72a01e3aa238f3badb1555caac7f44593ec59e' + 'e726247f694723f9c8cec971efa8eabe321b4341df06c0de6157581ecb285764' +) + +prepare() { + chmod u+x ${srcdir}/${_pkgname}-${pkgver}.AppImage + + ${srcdir}/${_pkgname}-${pkgver}.AppImage --appimage-extract +} + +package() { + find ${srcdir}/squashfs-root/locales/ -type d -exec chmod 755 {} + + find ${srcdir}/squashfs-root/resources/ -type d -exec chmod 755 {} + + + install -d ${pkgdir}/opt/${pkgname} + cp -r ${srcdir}/squashfs-root/* ${pkgdir}/opt/${pkgname} + + # remove broken or unused files and directories + rm -r ${pkgdir}/opt/${pkgname}/usr/ + rm ${pkgdir}/opt/${pkgname}/AppRun + rm ${pkgdir}/opt/${pkgname}/${_oldpkgname}.desktop + rm ${pkgdir}/opt/${pkgname}/${_oldpkgname}.png + + find ${srcdir}/squashfs-root/usr/share/icons/ -type d -exec chmod 755 {} + + + install -d ${pkgdir}/usr/share/icons + cp -r ${srcdir}/squashfs-root/usr/share/icons/hicolor ${pkgdir}/usr/share/icons/hicolor + + install -d ${pkgdir}/usr/bin + ln -s ../../opt/${pkgname}/${_oldpkgname} ${pkgdir}/usr/bin/${pkgname} + + install -Dm644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop +} diff --git a/mark-mind.desktop b/mark-mind.desktop new file mode 100644 index 000000000000..f757144c769a --- /dev/null +++ b/mark-mind.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Mark Mind +Exec=mark-mind %U +Terminal=false +Type=Application +Icon=mind +StartupWMClass=Mark Mind +X-AppImage-Version=1.1.9 +Comment=an mind map and outliner software +Categories=Utility; |