wok view boinc/receipt @ rev 25597

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 11:24:03 2023 +0000 (10 months ago)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="boinc"
4 VERSION="7.16.3"
5 CATEGORY="network"
6 SHORT_DESC="Open-source software for volunteer computing and grid computing."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://boinc.berkeley.edu/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/BOINC/$PACKAGE/archive/client_release/${VERSION%.*}/$VERSION.tar.gz"
14 # The init script requires bash.
15 DEPENDS="bash libcurl libnotify openssl wxWidgets"
16 BUILD_DEPENDS="autoconf automake curl-dev file libidn-dev
17 libnotify-dev libtool openssl-dev sqlite-dev wxWidgets-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
23 sed '/tag\//!d;s|.*elease ||;s|[<"].*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's/AC_PROG_CPP/&\nAC_PROG_OBJCXX/' configure.ac
31 # automake --add-missing
33 ./_autosetup &&
34 ./configure \
35 --disable-server \
36 --enable-unicode \
37 --enable-optimize \
38 $CONFIGURE_ARGS &&
39 make &&
40 for i in locale/*/*.mo
41 do
42 [ -s $(dirname $i)/$(basename ${i%mo})po ] &&
43 rm $i && msgfmt -o $i $(dirname $i)/$(basename ${i%mo})po
44 done &&
45 make install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p \
52 $fs/usr/lib \
53 $fs/var/lib/boinc \
54 $fs/usr/share/pixmaps
56 cp -a $install/usr/etc $fs
57 chmod 0644 $fs/etc/boinc-client.conf
58 cp -a $install/usr/bin $fs/usr
59 cp -a $install/usr/lib/*.so* $fs/usr/lib
60 cp $src/packages/generic/sea/boincmgr.48x48.png \
61 $fs/usr/share/pixmaps/boincmgr.png
62 rm $fs/etc/init.d/boinc-client
63 cp $stuff/boinc-client $fs/etc/init.d/boinc-client
64 }
66 post_install()
67 {
68 echo
69 # Check if boinc user already exists
70 if grep -q ^${BOINCUSER}: "$1/etc/passwd"
71 then
72 chroot "$1/" adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc
73 else
74 # In case boinc was previously installed:
75 chroot "$1/" chown -R boinc /var/lib/boinc
76 fi
78 echo 'Start the boinc client with "# /etc/init.d/boinc-client start"'
79 }
81 post_remove()
82 {
83 echo
84 echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : "
85 read -t 30 answer
86 if [ "$answer" = "yes" ]
87 then
88 chroot "$1/" deluser boinc
89 rm -r "$1/var/lib/boinc"
90 else
91 echo ""
92 echo "Leaving user boinc and /var/lib/boinc"
93 fi
94 }