blob: 18356d80c9f30794987125633e8bac5910294559 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>
_pkgname='pat-aur'
pkgbase=${_pkgname}-git
pkgname=(${_pkgname}-client-git ${_pkgname}-host-git ${_pkgname}-client-flatpak-git)
pkgver=r341.d922b03
pkgrel=1
pkgdesc='AUR helper and tool to build Arch Linux packages in clean containers.'
url="https://gitlab.com/patlefort/${_pkgname}"
license=('GPL3')
depends=()
makedepends=('git' 'libxslt' 'docbook-xsl' 'rsync' 'cmake' 'boost' 'flatpak')
arch=('x86_64')
source=("git+${url}.git")
sha256sums=('SKIP')
_srcdir="${_pkgname}"
pkgver() {
cd "${_srcdir}"
( set -o pipefail
git describe --tags --abbrev=7 --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
)
}
build() {
cmake -S ${_srcdir} -B build -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
package_pat-aur-client-git() {
depends+=('elvish' 'pacutils' 'expac')
provides=(${_pkgname}-client)
conflicts=(${_pkgname}-client)
pkgdesc+=' (client only)'
arch=('any')
DESTDIR="${pkgdir}" cmake --install build
}
package_pat-aur-client-flatpak-git() {
depends+=('pat-aur-client-git' 'boost' 'flatpak')
pkgdesc+=' (flatpak support)'
}
package_pat-aur-host-git() {
arch=('any')
depends+=('pat-aur-client-git' 'parallel' 'dumb-init' 'pacutils' 'aurutils' 'bubblewrap' 'ninja-jobserver' 'git' 'python')
optdepends+=(
'seccomp-filtered-run: seccomp filters.'
'sshfs: remote connection.'
'socat: remote connection.'
'systemd: cgroups support.'
)
provides=(${_pkgname}-host)
conflicts=(${_pkgname}-host)
pkgdesc+=' (host machine)'
install="${pkgbase}.install"
}
|