blob: ac3baa19deddd6b97fed9484f880aa17d1bde8eb (
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
|
_username=volunode
_reponame=volunode
#_ref="#branch=develop"
_pkgbase=volunode
pkgname=${_pkgbase}-git
pkgdesc="Next generation client for Berkeley Open Infrastructure for Network Computing."
pkgver=r30182.2a30c072f
pkgrel=1
arch=('i686' 'x86_64')
url="https://github.com/$_username/${_reponame/}"
license=('LGPL')
depends=('curl' 'boinc-app-api')
makedepends=('git' 'curl' 'meson' 'pstreams')
install=$_pkgbase.install
options=('!staticlibs')
source=("git+https://github.com/${_username}/${_reponame}${_ref}"
$_pkgbase.desktop
$_pkgbase.service
$_pkgbase.sysusers)
sha256sums=(
'SKIP'
'e41addacd2a1f508f7ac6803e53228fb580fb6b1fdf258322c4d0221d9ca90d1'
'1b1233ae27c0611e67da9adcaf7e4f23a4edde10d9ff2da351aebb85df9886ee'
'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
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"
}
|