diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..578723e42dc3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = shnote + pkgdesc = A simple TUI note-taking application written in Bash + pkgver = 1.0 + pkgrel = 1 + url = https://gitlab.com/NH000/shnote + arch = any + license = GPL3 + makedepends = sed + depends = bash + depends = coreutils + depends = gettext + source = shnote-1.0::git+https://gitlab.com/NH000/shnote#tag=6913c40c9122c0ce2e7ee45cdd33696afea1c519 + sha256sums = SKIP + +pkgname = shnote diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5f64a6747f14 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Nikola Hadžić <nikola.hadzic.000@protonmail.com> +pkgname="shnote" +pkgver="1.0" +pkgrel=1 +pkgdesc="A simple TUI note-taking application written in Bash" +arch=("any") +url="https://gitlab.com/NH000/shnote" +license=("GPL3") +depends=("bash" "coreutils" "gettext") +makedepends=("sed") +source=("$pkgname-$pkgver::git+$url#tag=6913c40c9122c0ce2e7ee45cdd33696afea1c519") +sha256sums=("SKIP") + +package() { + cd "$pkgname-$pkgver" + + install -D "shnote.sh" "$pkgdir/usr/bin/shnote" + sed -i '20s/$/"\/usr\/share\/locale"/' "$pkgdir/usr/bin/shnote" + sed -i '21s/$/"shnote"/' "$pkgdir/usr/bin/shnote" + + mkdir -p "$pkgdir/usr/share/locale/sr/LC_MESSAGES" + msgfmt -o "$pkgdir/usr/share/locale/sr/LC_MESSAGES/shnote.mo" "po/sr.po" + mkdir -p "$pkgdir/usr/share/locale/sr_RS@latin/LC_MESSAGES" + msgfmt -o "$pkgdir/usr/share/locale/sr_RS@latin/LC_MESSAGES/shnote.mo" "po/sr_RS@latin.po" +} |