summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 61dbe7f0a16349914e0308fef422026b04cc2391 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: RJ Haughton <rjahrj@gmail.com>

pkgname=nuaur-git
_pkgname="${pkgname%-git}"
pkgver=5.7c101cd
pkgrel=2
pkgdesc="A Nushell script to build, sign, and search AUR packages, for a local Repo."
arch=('any')
url="https://github.com/tororutsu/nuaur"
license=('MIT')
depends=('nushell' 'gnupg' 'devtools')
makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  # Use the latest commit hash as the package version
  echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

package() {
  cd "$_pkgname"
  install -Dm755 "$_pkgname" "$pkgdir/usr/bin/$_pkgname"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}