diff options
author | tcely <tcely@users.noreply.github.com> | 2018-08-12 03:13:12 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-05 19:18:20 +0000 |
commit | 01c926806edd868f2cc1165a922617f59c57d7fd (patch) | |
tree | e2c7a58990b874d4b7133ba941dc208a58cba2c2 /testing | |
parent | a6156d42d446c7d95e50c5bc28ad25e0b2d12046 (diff) | |
download | aports-01c926806edd868f2cc1165a922617f59c57d7fd.tar.bz2 aports-01c926806edd868f2cc1165a922617f59c57d7fd.tar.xz |
testing/boinc: new aport
http://boinc.berkeley.edu/
Open-source software for volunteer computing and grid computing.
Diffstat (limited to 'testing')
-rw-r--r-- | testing/boinc/APKBUILD | 94 | ||||
-rw-r--r-- | testing/boinc/boinc.pre-install | 6 |
2 files changed, 100 insertions, 0 deletions
diff --git a/testing/boinc/APKBUILD b/testing/boinc/APKBUILD new file mode 100644 index 0000000000..3982597412 --- /dev/null +++ b/testing/boinc/APKBUILD @@ -0,0 +1,94 @@ +# Contributor: +# Maintainer: +pkgname=boinc +pkgver=7.12.1 +_pkgver=${pkgver%.*} +pkgrel=0 +pkgdesc="Open-source software for volunteer computing and grid computing." +url="http://boinc.berkeley.edu/" +arch="all" +options="!check" # nothing is actually done by make check +license="LGPL-3.0-or-later" +depends="bash procps shadow" +depends_dev="" +makedepends="$depends_dev automake autoconf curl-dev docbook2x freeglut-dev + glu-dev libjpeg-turbo-dev libnotify-dev libressl-dev libtool + libxi-dev libxmu-dev libxscrnsaver-dev m4 mesa-dev pkgconf + sqlite-dev wxgtk-dev" +install="$pkgname.pre-install" +pkgusers="boinc" +pkggroups="boinc" +subpackages="$pkgname-doc $pkgname-dev $pkgname-gui $pkgname-lang $pkgname-libs $pkgname-openrc $pkgname-screensaver" +source="$pkgname-$pkgver.tar.gz::https://github.com/BOINC/$pkgname/archive/client_release/$_pkgver/$pkgver.tar.gz" +builddir="$srcdir/$pkgname-client_release-$_pkgver-$pkgver" + +build() { + cd "$builddir" + + ./_autosetup + + ./configure \ + --build="$CBUILD" \ + --host="$CHOST" \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --disable-server \ + --disable-fcgi \ + --enable-client \ + --enable-boinczip \ + --enable-install-headers \ + --enable-libraries \ + --with-x + + make +} + +check() { + cd "$builddir" + + make check +} + +package() { + cd "$builddir" + + make DESTDIR="$pkgdir" install +} + +_cleanup_empty_dirs() { + local _dir + _dir="${1:-"$pkgdir"}" + + find "$_dir" -mindepth 1 -depth -type d -exec rmdir --ignore-fail-on-non-empty '{}' + +} + +libs() { + default_libs + depends="$depends_libs" + + _cleanup_empty_dirs +} + +gui() { + depends="$depends_gui" + pkgdesc="$pkgdesc (manager)" + + mkdir -p "$subpkgdir/usr/bin" + mv "$pkgdir/usr/bin/boincmgr" "$subpkgdir/usr/bin" + + _cleanup_empty_dirs +} + +screensaver() { + depends="$depends_screensaver" + pkgdesc="$pkgdesc (screensaver)" + + mkdir -p "$subpkgdir/usr/bin" + mv "$pkgdir/usr/bin/boincscr" "$subpkgdir/usr/bin" + + _cleanup_empty_dirs +} + +sha512sums="7e96a3f7929c153b0001d0b0d2f626256bde9278e56fe9d10985292bd38646ac8a7ff572b8757a3f72cd8481fd893deb111a8c7a572beaec2881dd354651564c boinc-7.12.1.tar.gz" diff --git a/testing/boinc/boinc.pre-install b/testing/boinc/boinc.pre-install new file mode 100644 index 0000000000..29ae950930 --- /dev/null +++ b/testing/boinc/boinc.pre-install @@ -0,0 +1,6 @@ +#!/bin/sh + +addgroup -S boinc 2>/dev/null +adduser -S -D -h /var/lib/boinc -G boinc -g boinc boinc 2>/dev/null + +exit 0 |