2015-10-29 01:16:06 +00:00
|
|
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
|
|
|
|
# Contributor: Michal Krenek <mikos@sg1.cz>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - set boinc alternate platform to match their platforms:
|
|
|
|
# https://boinc.berkeley.edu/trac/wiki/BoincPlatforms
|
|
|
|
|
|
|
|
pkgbase=boinc
|
|
|
|
pkgname=(boinc boinc-nox)
|
2024-08-08 19:25:39 +00:00
|
|
|
pkgver=8.0.2
|
2022-12-02 19:02:56 +00:00
|
|
|
pkgrel=1
|
2017-11-27 13:34:44 +00:00
|
|
|
arch=('x86_64')
|
2019-06-24 12:32:35 +00:00
|
|
|
url="https://boinc.berkeley.edu/"
|
2015-10-29 01:16:06 +00:00
|
|
|
license=('LGPL')
|
2023-02-02 19:39:22 +00:00
|
|
|
makedepends=('git' 'curl' 'freeglut' 'glu' 'inetutils' 'libnotify' 'libnsl' 'libxmu' 'libxslt' 'libxss'
|
2024-08-08 19:25:39 +00:00
|
|
|
'mesa' 'perl-xml-sax' 'sqlite3' 'webkit2gtk-4.1' 'wxwidgets-gtk3')
|
2015-10-29 01:16:06 +00:00
|
|
|
install=$pkgbase.install
|
2024-08-08 19:25:39 +00:00
|
|
|
source=("git+https://github.com/BOINC/boinc.git#tag=client_release/${pkgver%.*}/$pkgver"
|
2017-11-27 13:34:44 +00:00
|
|
|
boinc.bash
|
|
|
|
boinc.desktop
|
2020-01-28 13:22:35 +00:00
|
|
|
boinc.sysusers)
|
2024-08-08 19:25:39 +00:00
|
|
|
sha512sums=('f92da0d879d2698a25220805843e903c67da300c42675f38d8d1d939e562c412b5110b25a686d2f16eb2074fdb207e44ea2f459e92a975e359ec215cd848f918'
|
2017-11-27 13:34:44 +00:00
|
|
|
'dec4bb6e571c2d99e1f57295149399eee03a8ec41b07ec3f7f197b910d246dcd6a5eb880301c9cd3a039d8c5aa6b07babf6ab4cae5f242c419c8cd71f56b90f5'
|
|
|
|
'b3fcd703a6f683d246242543c2f7b5fcfe403cb95b7786f1418b24c3dfb7c54c6b8c4816c0e9ae56b5ee4e4cae63f153ec522b04bf02f4f835dd90ac0e0ae204'
|
2020-01-28 13:22:35 +00:00
|
|
|
'85804d7e6b7e07f06e93e8c42507f5cd0b9415257d6ac7421603a2b6084699d847ae9720c1cf9e9793b750dfb768375116843b988b287ee7c66c1374e18f7934')
|
2015-10-29 01:16:06 +00:00
|
|
|
|
|
|
|
prepare() {
|
2023-02-02 19:39:22 +00:00
|
|
|
cp -a boinc{,-nox}
|
2015-10-29 01:16:06 +00:00
|
|
|
|
2023-02-02 19:39:22 +00:00
|
|
|
cd boinc
|
2017-06-19 23:21:39 +00:00
|
|
|
./_autosetup
|
|
|
|
|
|
|
|
# Prepare boinc-nox
|
2023-02-02 19:39:22 +00:00
|
|
|
cd "$srcdir"/boinc-nox
|
2016-04-06 03:55:01 +00:00
|
|
|
# Don't force xss
|
2017-06-19 23:21:39 +00:00
|
|
|
sed -i 's/^ enable_xss="yes"$/ enable_xss="no"/' configure.ac
|
|
|
|
./_autosetup
|
2015-10-29 01:16:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2022-07-23 20:44:15 +00:00
|
|
|
[[ $CARCH == "armv7h" ]] && CONFIG="--with-boinc-alt-platform=arm-unknown-linux-gnueabihf"
|
2015-10-29 01:16:06 +00:00
|
|
|
|
2023-02-02 19:39:22 +00:00
|
|
|
cd "$srcdir"/boinc
|
2022-05-03 12:27:15 +00:00
|
|
|
export CXXFLAGS+=' -ffat-lto-objects'
|
2022-05-03 00:11:17 +00:00
|
|
|
LDFLAGS+=' -lX11' ./configure \
|
2015-10-29 01:16:06 +00:00
|
|
|
--prefix=/usr \
|
2018-07-08 17:34:58 +00:00
|
|
|
--sysconfdir=/etc \
|
2015-10-29 01:16:06 +00:00
|
|
|
--enable-libraries \
|
|
|
|
--enable-unicode \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-dynamic-client-linkage \
|
|
|
|
--enable-client \
|
|
|
|
--enable-manager \
|
|
|
|
--disable-static \
|
|
|
|
--disable-server \
|
|
|
|
--with-ssl \
|
|
|
|
--with-x \
|
|
|
|
--with-wxdir=/usr/lib \
|
2022-07-15 00:18:59 +00:00
|
|
|
--with-wx-config=$(which wx-config) \
|
2015-10-29 01:16:06 +00:00
|
|
|
${CONFIG}
|
|
|
|
make
|
|
|
|
|
|
|
|
# Build boinc-nox
|
2023-02-02 19:39:22 +00:00
|
|
|
cd "$srcdir"/boinc-nox
|
2015-10-29 01:16:06 +00:00
|
|
|
PKG_CONFIG=/usr/bin/pkg-config ./configure \
|
|
|
|
--prefix=/usr \
|
2018-07-08 17:34:58 +00:00
|
|
|
--sysconfdir=/etc \
|
2015-10-29 01:16:06 +00:00
|
|
|
--enable-libraries \
|
|
|
|
--enable-unicode \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-dynamic-client-linkage \
|
|
|
|
--enable-client \
|
|
|
|
--disable-server \
|
|
|
|
--disable-static \
|
|
|
|
--disable-manager \
|
|
|
|
--with-ssl \
|
|
|
|
--without-wxdir \
|
|
|
|
--without-x \
|
|
|
|
${CONFIG}
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package_boinc() {
|
|
|
|
pkgdesc="Berkeley Open Infrastructure for Network Computing for desktop"
|
2022-07-15 00:18:59 +00:00
|
|
|
depends=('curl' 'libnotify' 'libnsl' 'libxss' 'sqlite3' 'webkit2gtk' 'wxwidgets-gtk3')
|
2015-10-29 01:16:06 +00:00
|
|
|
|
2023-02-02 19:39:22 +00:00
|
|
|
cd boinc
|
2015-10-29 01:16:06 +00:00
|
|
|
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
#install sysusers conf
|
2023-02-02 19:39:22 +00:00
|
|
|
install -Dm644 "$srcdir/$pkgbase.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgbase.conf"
|
2015-10-29 01:16:06 +00:00
|
|
|
|
|
|
|
#install bash-completion
|
2023-02-02 19:39:22 +00:00
|
|
|
install -Dm644 "$srcdir/$pkgbase.bash" "$pkgdir/usr/share/bash-completion/completions/$pkgbase"
|
2015-10-29 01:16:06 +00:00
|
|
|
|
|
|
|
#install .desktop File
|
2023-02-02 19:39:22 +00:00
|
|
|
install -Dm644 "$srcdir/$pkgbase.desktop" "$pkgdir/usr/share/applications/$pkgbase.desktop"
|
2015-10-29 01:16:06 +00:00
|
|
|
|
|
|
|
#install icons
|
2023-02-02 19:39:22 +00:00
|
|
|
install -Dm644 "$srcdir/boinc/packages/generic/sea/boincmgr.48x48.png" "$pkgdir/usr/share/pixmaps/$pkgbase.png"
|
2015-10-29 01:16:06 +00:00
|
|
|
|
|
|
|
#remove initscripts stuff
|
|
|
|
rm -rf "$pkgdir/etc"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_boinc-nox() {
|
|
|
|
pkgdesc="Berkeley Open Infrastructure for Network Computing for desktop without Xorg dependencies"
|
2018-04-24 12:21:00 +00:00
|
|
|
depends=('curl' 'libjpeg-turbo')
|
|
|
|
provides=('boinc')
|
|
|
|
conflicts=('boinc')
|
2015-10-29 01:16:06 +00:00
|
|
|
|
2023-02-02 19:39:22 +00:00
|
|
|
cd boinc-nox
|
2015-10-29 01:16:06 +00:00
|
|
|
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
#install sysusers conf
|
2023-02-02 19:39:22 +00:00
|
|
|
install -Dm644 "$srcdir/$pkgbase.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgbase.conf"
|
2015-10-29 01:16:06 +00:00
|
|
|
|
|
|
|
#install bash-completion
|
2023-02-02 19:39:22 +00:00
|
|
|
install -Dm644 "$srcdir/$pkgbase.bash" "$pkgdir/usr/share/bash-completion/completions/$pkgbase"
|
2015-10-29 01:16:06 +00:00
|
|
|
|
|
|
|
#remove initscripts stuff
|
|
|
|
rm -rf "$pkgdir/etc"
|
|
|
|
}
|