aboutsummaryrefslogtreecommitdiff
path: root/pkgbuild/PKGBUILD
blob: ac9ba9380feebabb6a6f96cc8832dbb0e03d2e3e (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
37
38
39
40
41
42
43
44
# Maintainer: Your Name <youremail@domain.com>
pkgname=aurbuilder
pkgver=0.0
pkgrel=1
pkgdesc="AUR Package builder"
arch=( any )
url="https://gitea.lauch.link/jonas/aurbuilder"
license=('MIT')
groups=()
depends=( podman bash pacman )
makedepends=( gzip )
optdepends=()
source=(git+$url.git)
sha256sums=( SKIP )
install=$pkgname.install
backup=(
	etc/aurbuilder/packages
	etc/aurbuilder/config
)

pkgver() {
	date +%Y%m%d
}

build() {
	cd "$srcdir/$pkgname"

	cd doc
	gzip "aurbuilder.7"
}

package() {
	cd "$srcdir/$pkgname"
	install -Dt $pkgdir/usr/share/aurbuilder/container container/{Dockerfile,sudoers}
	install -Dt $pkgdir/usr/share/aurbuilder/container/bin container/bin/*

	install -Dt $pkgdir/usr/share/aurbuilder/nginx nginx/*

	install -Dt $pkgdir/usr/lib/aurbuilder scripts/*
	install -Dt $pkgdir/usr/lib/systemd/system unitfiles/*
	install -Dt $pkgdir/etc/aurbuilder configs/*

	install -Dt $pkgdir/usr/share/man/man7 doc/aurbuilder.7.gz
}