Skip to content

Commit

Permalink
adding gocatcli aur package
Browse files Browse the repository at this point in the history
  • Loading branch information
deadc0de6 committed Jun 24, 2024
1 parent 90d66f0 commit 9db735a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions packages/arch-gocatcli-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Maintainer: deadc0de6 <[email protected]>

_pkgname=gocatcli
pkgname="${_pkgname}-git"
pkgver=1.0.3.r0.g90d66f0
pkgrel=1
pkgdesc='The command line catalog tool for your offline data'
arch=('x86_64')
url="https://github.com/deadc0de6/gocatcli"
license=('GPL')
makedepends=('go' 'git')
provides=('gocatcli')
conflicts=('gocatcli')
source=("git+https://github.com/deadc0de6/gocatcli.git")
sha256sums=('SKIP')

pkgver() {
cd "${_pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
}

build() {
cd "${_pkgname}"
make build
}

package() {
install -Dm755 "build/${_pkgname}" "$pkgdir/usr/bin/${_pkgname}"

install -Dm644 "${srcdir}/${_pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
install -Dm644 "${srcdir}/${_pkgname}/README.md" "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
}

0 comments on commit 9db735a

Please sign in to comment.