aboutsummaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 8054cc401e9138eb27a7315fd4296458cd703eb5 (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
29
30
31
# shellcheck disable=SC2034,SC2154,SC2164
# Maintainer: pml68 <contact@pml68.dev>

pkgname=aur-git
pkgver=1.2.0.r0.g5cbe351
pkgrel=1
pkgdesc='A simple script for AUR package management'
arch=('any')
url='https://git.pml68.dev/aur'
license=('MIT')
depends=(
  'bash'
  'git'
  'devtools'
)
options=('!strip' '!debug')
conflicts=('aur')
provides=('aur')
source=("${pkgname}::git+git://git.pml68.dev/aur")
sha256sums=('SKIP')

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

package() {
  cd "${pkgname}"
  make DESTDIR="$pkgdir" install
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}