wok-next view boinc/receipt @ rev 21220

try to build boinc again
author Hans-G?nter Theisgen
date Tue Dec 03 09:21:57 2019 +0100 (2019-12-03)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="boinc"
4 VERSION="6.10.58"
5 CATEGORY="network"
6 SHORT_DESC="Open-source software for volunteer computing and grid computing"
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://boinc.berkeley.edu/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="svn|https://boinc.berkeley.edu/svn/tags/boinc_core_release_${VERSION//./_}"
14 BUILD_DEPENDS="autoconf automake curl-dev file libidn-dev libnotify-dev
15 openssl-dev sqlite3-dev subversion wxWidgets28-dev"
16 SPLIT="$PACKAGE-dev"
18 compile_rules()
19 {
20 sed -i 's/AC_PROG_CPP/&\nAC_PROG_OBJCXX/' configure.ac
22 automake --add-missing &&
23 ./_autosetup &&
24 ./configure \
25 --disable-server \
26 --enable-unicode \
27 --enable-optimize \
28 $CONFIGURE_ARGS &&
29 fix libtool &&
30 make &&
31 make install || return 1
33 chmod 0644 $install/etc/boinc-client.conf
35 install -Dm644 $install/usr/share/boinc/boincmgr.48x48.png \
36 $install/usr/share/pixmaps/boincmgr.png
38 rm $install/etc/init.d/boinc-client
39 install -Dm755 $stuff/boinc-client $install/etc/init.d/boinc-client
40 }
42 genpkg_rules()
43 {
44 case $PACKAGE in
45 boinc)
46 copy @std
47 # The init script requires bash.
48 DEPENDS="bash libcurl libnotify openssl wxWidgets28"
49 ;;
50 *-dev)
51 copy @dev
52 ;;
53 esac
54 }
56 post_install_boinc()
57 {
58 echo
59 # Check if boinc user already exists
60 if grep -q "^$BOINCUSER:" "$1/etc/passwd"
61 then
62 chroot "$1/" adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc
63 else
64 # In case boinc was previously installed:
65 chroot "$1/" chown -R boinc /var/lib/boinc
66 fi
68 echo 'Start the boinc client with "# /etc/init.d/boinc-client start"'
69 }
71 post_remove_boinc()
72 {
73 echo
74 echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : "
75 read -t 30 answer
76 if [ "$answer" == "yes" ]
77 then
78 chroot "$1/" deluser boinc
79 rm -r "$1/var/lib/boinc"
80 else
81 echo ""
82 echo "Leaving user boinc and /var/lib/boinc"
83 fi
84 }