blob: 98e86d22f1cfd7042ffb55e297c8673b493e045a (
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
61
62
63
64
65
66
67
68
|
_username=volunode
_reponame=volunode
#_ref="#branch=BranchID"
#_ref="#commit=CommitID"
_pkgbase=volunode
pkgname=${_pkgbase}-git
pkgdesc="Next generation client for Berkeley Open Infrastructure for Network Computing."
pkgver=r30264.41d8578cd
pkgrel=1
arch=(
'x86_64'
)
url="https://github.com/$_username/${_reponame}"
license=('LGPL')
depends=(
'curl'
'libbsd'
'boinc-app-api'
)
makedepends=(
'git'
'curl'
'meson'
'pstreams'
)
install=$_pkgbase.install
options=('!staticlibs')
source=("git+https://github.com/${_username}/${_reponame}${_ref}"
$_pkgbase.service
$_pkgbase.sysusers)
sha256sums=(
'SKIP'
'194e196253046ae6515322332dfd14111aa2fb9de8bf6ed75423de30170e7883'
'c7a03d70cce6206d071d99c13315977db4c4deac2cab52a236f0825325720907'
)
pkgver() {
cd "${_reponame}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
if [ ! -d ${srcdir}/build ]; then
cd ${srcdir}/${_reponame}
meson --prefix=/usr --buildtype=release ${srcdir}/build
# meson --prefix=/usr --buildtype=debug ${srcdir}/build
cd ..
fi
cd ${srcdir}/build
ninja
}
package() {
cd ${srcdir}/build
DESTDIR="${pkgdir}" ninja install
#install systemd unit
install -Dm644 "${srcdir}/${_pkgbase}.service" "${pkgdir}/usr/lib/systemd/system/${_pkgbase}.service"
#install sysusers conf
install -Dm644 "${srcdir}/${_pkgbase}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${_pkgbase}.conf"
#remove initscripts stuff
rm -rf "${pkgdir}/etc"
}
|