summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b7135b9f0604889c4c62fa909bf0d17c46c47673 (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
# Maintainer: dr460nf1r3 <dr460nf1r3@garudalinux.org>

pkgname=arch-deployer-git
_pkgname=arch-deployer
gitname=Arch-Deployer
pkgver=r11.3eaa86a
pkgrel=1
pkgdesc='A script to bulk download an Arch Linux package with all its dependencies'
arch=(x86_64 aarch64)
url="https://github.com/ivan-hc/$gitname"
license=(GPL3)
makedepends=(git)
provides=($_pkgname)
conflicts=($_pkgname)
source=("git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$gitname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  install -m0644 -D "$srcdir/$gitname/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
  chmod +x $pkgdir/usr/bin/$_pkgname
}