mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Initial upload v0.1.0
This commit is contained in:
commit
188aa9c120
2 changed files with 79 additions and 0 deletions
25
.SRCINFO
Normal file
25
.SRCINFO
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
pkgbase = markus-bin
|
||||
pkgdesc = A local WYSIWYG Markdown editor built with Electron, React, and ProseMirror
|
||||
pkgver = 0.1.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/erkkimon/markus-the-editor
|
||||
arch = x86_64
|
||||
license = MIT
|
||||
depends = gtk3
|
||||
depends = nss
|
||||
depends = libxss
|
||||
depends = libxtst
|
||||
depends = xdg-utils
|
||||
depends = libsecret
|
||||
depends = libappindicator-gtk3
|
||||
optdepends = libnotify: for desktop notifications
|
||||
provides = markus
|
||||
provides = markus-the-editor
|
||||
conflicts = markus
|
||||
conflicts = markus-the-editor
|
||||
options = !strip
|
||||
options = !debug
|
||||
source = Markus-0.1.0.AppImage::https://github.com/erkkimon/markus-the-editor/releases/download/v0.1.0/Markus-0.1.0.AppImage
|
||||
sha256sums = 31cab01800dcc4d74f461efebb5574cbeb024dd1db8abc5f0c5a4c9733b808f4
|
||||
|
||||
pkgname = markus-bin
|
||||
54
PKGBUILD
Normal file
54
PKGBUILD
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
# Maintainer: Tom Himanen <tom.himanen@futuhima.ninja>
|
||||
|
||||
pkgname=markus-bin
|
||||
_appname=markus-the-editor
|
||||
pkgver=0.1.0
|
||||
pkgrel=1
|
||||
pkgdesc="A local WYSIWYG Markdown editor built with Electron, React, and ProseMirror"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/erkkimon/markus-the-editor"
|
||||
license=('MIT')
|
||||
depends=('gtk3' 'nss' 'libxss' 'libxtst' 'xdg-utils' 'libsecret' 'libappindicator-gtk3')
|
||||
optdepends=('libnotify: for desktop notifications')
|
||||
provides=('markus' 'markus-the-editor')
|
||||
conflicts=('markus' 'markus-the-editor')
|
||||
options=('!strip' '!debug')
|
||||
source=("Markus-${pkgver}.AppImage::${url}/releases/download/v${pkgver}/Markus-${pkgver}.AppImage")
|
||||
sha256sums=('31cab01800dcc4d74f461efebb5574cbeb024dd1db8abc5f0c5a4c9733b808f4')
|
||||
|
||||
prepare() {
|
||||
chmod +x "Markus-${pkgver}.AppImage"
|
||||
"./Markus-${pkgver}.AppImage" --appimage-extract
|
||||
}
|
||||
|
||||
package() {
|
||||
# Install to /opt
|
||||
install -dm755 "${pkgdir}/opt/${_appname}"
|
||||
cp -r squashfs-root/* "${pkgdir}/opt/${_appname}/"
|
||||
|
||||
# Fix permissions
|
||||
find "${pkgdir}/opt/${_appname}" -type d -exec chmod 755 {} \;
|
||||
chmod 755 "${pkgdir}/opt/${_appname}/${_appname}"
|
||||
|
||||
# Create symlink in /usr/bin
|
||||
install -dm755 "${pkgdir}/usr/bin"
|
||||
ln -s "/opt/${_appname}/${_appname}" "${pkgdir}/usr/bin/markus"
|
||||
|
||||
# Install desktop file
|
||||
install -Dm644 "squashfs-root/${_appname}.desktop" \
|
||||
"${pkgdir}/usr/share/applications/${_appname}.desktop"
|
||||
|
||||
# Fix desktop file Exec path
|
||||
sed -i "s|Exec=AppRun|Exec=/opt/${_appname}/${_appname}|g" \
|
||||
"${pkgdir}/usr/share/applications/${_appname}.desktop"
|
||||
|
||||
# Install icons from extracted AppImage
|
||||
for size in 16 32 48 64 128 256; do
|
||||
install -Dm644 "squashfs-root/usr/share/icons/hicolor/${size}x${size}/apps/${_appname}.png" \
|
||||
"${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/${_appname}.png"
|
||||
done
|
||||
|
||||
# Install license
|
||||
install -Dm644 "squashfs-root/LICENSE.electron.txt" \
|
||||
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue