diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-03-07 20:26:46 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-03-07 20:26:46 -0200 |
commit | a722d7eddb2524abf2e35a9d52811d90c4dbed9a (patch) | |
tree | eea41beedc4dcd27f5d42bcfc55dbdbc51dcc44c /libre | |
parent | 36896e5915ae6885448f1979024f5d2d8ff9d43b (diff) | |
parent | bb323f96d84486033b2e95afe41049c12c9cbc71 (diff) | |
download | abslibre-a722d7eddb2524abf2e35a9d52811d90c4dbed9a.tar.gz abslibre-a722d7eddb2524abf2e35a9d52811d90c4dbed9a.tar.bz2 abslibre-a722d7eddb2524abf2e35a9d52811d90c4dbed9a.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre')
-rw-r--r-- | libre/cgminer-libre/PKGBUILD | 54 | ||||
-rw-r--r-- | libre/cgminer-libre/cgminer.conf.d | 11 | ||||
-rw-r--r-- | libre/cgminer-libre/cgminer.service | 8 | ||||
-rw-r--r-- | libre/luxrender-libre/PKGBUILD | 48 |
4 files changed, 121 insertions, 0 deletions
diff --git a/libre/cgminer-libre/PKGBUILD b/libre/cgminer-libre/PKGBUILD new file mode 100644 index 000000000..e62331a98 --- /dev/null +++ b/libre/cgminer-libre/PKGBUILD @@ -0,0 +1,54 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@gmail.com> +# Contributor: monson <holymonson@gmail.com> +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: David Manouchehri <david@davidmanouchehri.com> +# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com> + +pkgname=cgminer-libre +_pkgflag=libre +pkgver=2.11.1 +_build= +pkgrel=1 +pkgdesc="Multi-threaded multi-pool CPU and GPU miner for bitcoin, forked from cpuminer, without nonfree OpenCL recommendations." +url='http://forum.bitcoin.org/index.php?topic=28402.0' +license=('GPL3') +arch=('i686' 'x86_64' 'mips64el') +depends=('curl' 'libcl-libre') +makedepends=('opencl-headers') +source=("http://ck.kolivas.org/apps/${pkgname%-$_pkgflag}/${pkgname%-$_pkgflag}-$pkgver.tar.bz2" + "${pkgname%-$_pkgflag}.conf.d" + "${pkgname%-$_pkgflag}.service") +backup=("etc/conf.d/${pkgname%-$_pkgflag}" "etc/${pkgname%-$_pkgflag}.conf") + +[ "$CARCH" == "x86_64" ] && makedepends+=('yasm') + +build() { + cd "$srcdir" + cd ${pkgname%-$_pkgflag}-$pkgver${_build} + + # Use in-tree jansson since it is not compatible with jansson 2.0 + #sed -e 's/^AC_CHECK_LIB(jansson, json_loads, request_jansson=false, request_jansson=true)$/request_jansson=true/' -i configure.ac + + # Here you may want to use custom CFLAGS + #export CFLAGS="-O2 -march=native -mtune=native -msse2" + + ./configure --prefix=/usr --enable-cpumining --disable-adl + + make +} + +package() { + cd "$srcdir"/${pkgname%-$_pkgflag}-$pkgver${_build} + + make DESTDIR="$pkgdir" install + + install -Dm644 "$srcdir"/${pkgname%-$_pkgflag}.service "$pkgdir"/usr/lib/systemd/system/${pkgname%-$_pkgflag}.service + install -Dm644 "$srcdir"/${pkgname%-$_pkgflag}.conf.d "$pkgdir"/etc/conf.d/${pkgname%-$_pkgflag} + sed 's#/usr/local/bin#/usr/bin#g' example.conf > ${pkgname%-$_pkgflag}.conf + install -Dm644 ${pkgname%-$_pkgflag}.conf "$pkgdir"/etc/${pkgname%-$_pkgflag}.conf +} + +md5sums=('aa2199a9756cbca5582c03e8c1a98dd1' + 'fe4a243fabe24608f5c05e40f0f118f6' + 'bd76fc92fedce18c59ccea2aa79cc664') diff --git a/libre/cgminer-libre/cgminer.conf.d b/libre/cgminer-libre/cgminer.conf.d new file mode 100644 index 000000000..88ec535d6 --- /dev/null +++ b/libre/cgminer-libre/cgminer.conf.d @@ -0,0 +1,11 @@ +# Use JSON-format configuration. (recommended) +CGMINER_CONF="/etc/cgminer.conf" + +# Uncommend this if you prefer simple command-line arguments. +#CGMINER_CONF="" +#CGMINER_PROTOCOL="http" +#CGMINER_IP="127.0.0.1" +#CGMINER_PORT="8332" +#CGMINER_USER="username" +#CGMINER_PASS="password" +CGMINER_ARGS="--syslog" diff --git a/libre/cgminer-libre/cgminer.service b/libre/cgminer-libre/cgminer.service new file mode 100644 index 000000000..84461879f --- /dev/null +++ b/libre/cgminer-libre/cgminer.service @@ -0,0 +1,8 @@ +[Unit] +Description=Multi-threaded multi-pool CPU and GPU miner for bitcoin + +[Service] +ExecStart=/usr/bin/cgminer -T --config /etc/cgminer.conf --syslog + +[Install] +WantedBy=multi-user.target diff --git a/libre/luxrender-libre/PKGBUILD b/libre/luxrender-libre/PKGBUILD new file mode 100644 index 000000000..0dcfb0a5b --- /dev/null +++ b/libre/luxrender-libre/PKGBUILD @@ -0,0 +1,48 @@ +# $Id$ +# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com> +# Contributor: flixie <69one@gmx.net> +# Contributor: Imanol Celaya <ornitorrincos@archlinux-es.org> +# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com> +pkgname=luxrender-libre +pkgver=1.2 +_pkgver=ee0b9ff73d62 +pkgrel=1 +pkgdesc="Rendering system for physically correct, unbiased image synthesis" +arch=('i686' 'x86_64' 'mips64el') +url="http://www.${pkgname%-$_pkgflag}.net/" +license=('GPL') +depends=('boost-libs' 'freeimage' 'openexr' 'libcl' 'libgl') +optdepends=('luxblend25: Blender exporter' 'qt4: Qt GUI' \ + 'python: Python interface (pylux)') +makedepends=('cmake' 'boost' 'mesa' 'qt4' "luxrays=$pkgver" 'python' 'opencl-headers') +source=(https://bitbucket.org/${pkgname%-$_pkgflag}/lux/get/$_pkgver.tar.bz2) +md5sums=('eb1ed9ecfe540896863ad4ee4da5a2f9') + +build() { + cd "$srcdir"/${pkgname%-$_pkgflag}-lux-$_pkgver + + # fix the installation + sed -i '/.*wxgui.*/ d' CMakeLists.txt + + export CXXFLAGS="$CXXFLAGS -lpthread" + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DLUXRAYS_DISABLE_OPENCL=OFF \ + -DPYTHON_CUSTOM=ON \ + -DPYTHON_LIBRARIES=/usr/lib/libpython3.3m.so \ + -DPYTHON_INCLUDE_PATH=/usr/include/python3.3m/ \ + . + make +} + +package() { + cd "$srcdir"/${pkgname%-$_pkgflag}-lux-$_pkgver + make DESTDIR="$pkgdir" install + + # fix library path on x86_64 + [ "$CARCH" = "x86_64" ] && mv "$pkgdir"/usr/lib64 "$pkgdir"/usr/lib + + #install pylux + install -D -m644 pylux.so "$pkgdir"/usr/lib/python3.3/pylux.so +} + +# vim:set ts=2 sw=2 et: |