# Maintainer Joost Bremmer pkgbase=shortcut-git pkgname=('shortcut-pages-git' 'shortcut-pages-extra-git' 'shortcut-c-client-git') pkgver=0.2.0 pkgrel=2 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-pages::git+https://github.com/mt-empty/shortcut-pages.git" "shortcut-c-client::git+https://github.com/mt-empty/shortcut-c-client.git") sha256sums=('SKIP' 'SKIP') pkgver() { cd "${srcdir}/shortcut-pages" printf "0.2.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "${srcdir}/shortcut-c-client" make DEST_DIR="/usr/share" 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}/usr/share/shortcut/pages" find . -type f -iname "*.md" -exec \ install -Dvm644 "{}" "${pkgdir}/usr/share/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/misc/nonGUI" install -dvm755 "${pkgdir}/usr/share/shortcut/pages" find . -type f -iname "*.md" -not -regex "\.\/\(c\|git\|r\|unity\|\)\.md$" -exec \ install -Dvm644 "{}" "${pkgdir}/usr/share/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: