diff options
author | Digimezzo | 2020-05-20 08:33:08 +0200 |
---|---|---|
committer | Digimezzo | 2020-05-20 08:33:08 +0200 |
commit | 8b8dec775dec2d8cdc7af81e85601496c09f859a (patch) | |
tree | 5d4cba1427083b74480acb86dfaed5f9f759c150 | |
download | aur-8b8dec775dec2d8cdc7af81e85601496c09f859a.tar.gz |
Adds Knowte v2.0.3
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 49 |
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e47116fe5006 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = knowte + pkgdesc = Knowte is a note taking application that allows you to quickly and easily organize and find your notes. + pkgver = 2.0.3 + pkgrel = 1 + url = https://www.digimezzo.com + arch = x86_64 + license = GPL3 + makedepends = coreutils + provides = knowte + conflicts = knowte + replaces = knowte + options = !strip + source = Knowte-2.0.3.AppImage::https://github.com/digimezzo/knowte/releases/download/v2.0.3/Knowte-2.0.3.AppImage + sha256sums = bae0f53bc08c5eb7934a25659cd88e46b5e739c598fcff28f6ea91a618c6d110 + +pkgname = knowte + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9e9fbff98721 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Digimezzo <raphael@digimezzo.com> +_pkgname=Knowte +pkgname=knowte +pkgver=2.0.3 +pkgrel=1 +pkgdesc="Knowte is a note taking application that allows you to quickly and easily organize and find your notes." +arch=('x86_64') +url="https://www.digimezzo.com" +license=('GPL3') +provides=(${pkgname}) +conflicts=(${pkgname}) +replaces=(${pkgname}) +depends=() +makedepends=('coreutils') +backup=() +options=(!strip) +source=("${_pkgname}-${pkgver}.AppImage::https://github.com/digimezzo/${pkgname}/releases/download/v${pkgver//_/-}/${_pkgname}-${pkgver}.AppImage") +sha256sums=('bae0f53bc08c5eb7934a25659cd88e46b5e739c598fcff28f6ea91a618c6d110') + +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}/knowte + rm ${pkgdir}/opt/${pkgname}/${pkgname}.desktop + rm ${pkgdir}/opt/${pkgname}/${pkgname}.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}/${pkgname} ${pkgdir}/usr/bin/${pkgname} + + install -Dm644 ${srcdir}/squashfs-root/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop +} + |