diff options
author | Joost Bremmer | 2020-03-29 22:34:56 +0200 |
---|---|---|
committer | Joost Bremmer | 2020-03-29 22:34:56 +0200 |
commit | 06b1be356f374b5fee4f313d753883d97fea65f6 (patch) | |
tree | b66192c2ab94b9a3e9fe6ac6147a99893c990292 /PKGBUILD | |
download | aur-06b1be356f374b5fee4f313d753883d97fea65f6.tar.gz |
Initial PKGBUILD
Signed-off-by: Joost Bremmer <contact@madeofmagicandwires.online>
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..03903e49de95 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,73 @@ +# Maintainer Joost Bremmer <contact@madeofmagicandowires.online> +pkgbase=shortcut-git +pkgname=('shortcut-pages-git' 'shortcut-pages-extra-git' 'shortcut-c-client-git') +pkgver=0.1.0.r9.15af3dc +pkgrel=1 +pkgdesc="A commandline client to list shortcuts" +url="https://github.com/mt-empty/shortcut-c-client" +arch=('x86_64') +license=('unknown') +makedepends=('git') +source=("shortcut-c-client::git+https://github.com/mt-empty/shortcut-c-client.git" + "shortcut-pages::git+https://github.com/mt-empty/shortcut-pages.git") +sha256sums=("SKIP" + "SKIP") + +pkgver() { + cd "${srcdir}/shortcut-pages" + git describe --long --tags 2>/dev/null | sed 's/[^[:digit:]]*\(.\+\)-\([[:digit:]]\+\)-g\([[:xdigit:]]\{7\}\)/\1.r\2.g\3/;t;q1' + [ ${PIPESTATUS[0]} -eq 0 ] || \ + printf "0.1.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/shortcut-c-client" + make shortcut +} + + +package_shortcut-pages-git() { + pkgname=shortcut-pages-git + pkgdesc="A collections of keyboard shortcuts for Desktop application and websites" + url="https://github.com/mt-empty/shortcut-pages" + arch=('any') + license=('unknown') + provides=('shortcut-pages') + + cd "$srcdir/shortcut-pages/GUI" + + install -dvm755 "${pkgdir}/opt/shortcut/pages" + find . -type f -iname "*.md" -exec \ + install -Dvm644 "{}" "${pkgdir}/opt/shortcut/pages/{}" \; +} + +package_shortcut-pages-extra-git() { + pkgname=shortcut-pages-extra-git + pkgdesc="An extra collection of cheatsheets for nonGUI applications and games" + url="https://github.com/mt-empty/shortcut-pages" + arch=('any') + license=('unknown') + provides=('shortcut-pages-extra' 'shortcut-pages') + + cd "$srcdir/shortcut-pages/nonGUI" + + install -dvm755 "${pkgdir}/opt/shortcut/pages" + find . -type f -iname "*.md" -not -regex "\.\/\(c\|git\|r\|unity\|\)\.md$" -exec \ + install -Dvm644 "{}" "${pkgdir}/opt/shortcut/pages/{}" \; +} + +package_shortcut-c-client-git() { + pkgname="shortcut-c-client-git" + pkgdesc="A command line client for shortcut-pages" + url="https://github.com/mt-empty/shortcut-c-client" + arch=('x86_64') + license=('unknown') + depends=('shortcut-pages') + optdepends=('shortcut-pages-extra') + provides=('shorcut') + + cd "$srcdir/shortcut-c-client" + install -Dvm755 shortcut "${pkgdir}/usr/bin/shortcut" +} + +# vim: set ts=2 sts=2 sw=2 et: |