pkgname="paths-bookmarks-git" pkgver=r106.3c2a675 pkgrel=1 pkgdesc="Save often used directories like bookmarks" arch=("x86_64") url="https://github.com/sproott/pat.hs" license=("MIT") makedepends=("git" "stack") optdepends=() install="${pkgname}.install" provides=("paths-bookmarks") source=("${pkgname}::git+https://github.com/sproott/pat.hs.git") sha256sums=('SKIP') pkgver() { cd "${srcdir}/${pkgname}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "${srcdir}/${pkgname}" mkdir -p "bin" stack --local-bin-path "bin/" install } package() { cd "${srcdir}/${pkgname}" # Install binary install -Dm755 "bin/paths" "${pkgdir}/usr/share/paths/paths" install -Dm755 "bin/paths.sh" "${pkgdir}/usr/share/paths/paths.sh" install -Dm755 "bin/paths.fish" "${pkgdir}/usr/share/paths/paths.fish" # Install shell completions install -Dm644 "bin/completions/bashcompletion.sh" "${pkgdir}/usr/share/bash-completion/completions/paths" install -Dm644 "bin/completions/fishcompletion.fish" "${pkgdir}/usr/share/fish/completions/paths.fish" }