blob: 25e969480003dc0941a3c992a3cf161e0d150993 (
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
32
33
34
35
36
|
#maintainer lxgr <lxgr@protonmail.com>
pkgname=buildaur-git
_pkgname=buildaur
pkgver=42.1.1
pkgrel=1
pkgdesc="An AUR helper with asp support (development version)"
arch=(any)
conflicts=($_pkgname)
provides=($_pkgname)
url="https://github.com/lxgr-linux/buildaur"
license=('GPL3')
depends=('pacman' 'devtools' 'git' 'python3' 'python-requests' 'pyalpm')
makedepends=('git')
backup=('etc/buildaur/buildaur.conf')
optdepends=("bash-completion: Bash completion" "asp: ASP support")
source=("$pkgname"::'git+https://github.com/lxgr-linux/buildaur.git')
md5sums=('SKIP')
pkgver() {
cd "$pkgbase"
git describe --tags --always | sed -r 's|release-||g;s/([^-]*-g)/r\1/;s/-/./g'
}
package() {
cd "$srcdir/$pkgname"
install -Dm0755 -t "${pkgdir}/usr/bin" buildaur.sh buildaur
install -Dm644 -t "${pkgdir}/usr/share/buildaur" progressbar_buildaur.py buildaur_translations.py
install -Dm644 -t "${pkgdir}/usr/share/zsh/site-functions/" _buildaur
install -Dm0755 -t "${pkgdir}/usr/share/buildaur" outputter.sh
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE
install -Dm644 -t "${pkgdir}/etc/bash_completion.d/" buildaur-completion.bash
install -Dm644 -t "$pkgdir/etc/buildaur/" buildaur.conf
install -dm755 "${pkgdir}/etc/buildaur/"{prehooks,posthooks,prerunhooks,postrunhooks,hooks}
install -Dm0755 ./prehooks/* "$pkgdir/etc/buildaur/prehooks"
#install -Dm0755 -t "$pkgdir/etc/buildaur/posthooks" ./posthooks/*
}
|