Compare commits

...

2 Commits

Author SHA1 Message Date
Les De Ridder f1bd9a2ee8 lokinet: Update PKGBUILD to new upstream repo 2018-11-29 05:34:56 +01:00
Les De Ridder addb43c662 octave-hg: Add PKGBUILD 2018-11-29 05:34:12 +01:00
3 changed files with 72 additions and 10 deletions

View File

@ -1,21 +1,21 @@
# Maintainer: Les De Ridder <aur@lesderid.net>
_pkgname=lokinet
pkgname=${_pkgname}-git
pkgver=v0.2.3.rc1.r28.252b2ee
pkgver=v0.3.1.r218.a8e3f79
pkgrel=1
pkgdesc="A private, decentralized and Market based Sybil resistant overlay network"
arch=('x86_64')
url="https://loki.network/"
license=('custom:zlib')
depends=('bash' 'libcap')
makedepends=('git' 'cmake')
makedepends=('git' 'cmake' 'rapidjson')
provides=("lokinet")
source=("$_pkgname::git+git://github.com/loki-project/lokinet-builder.git" 'lokinet.sysusers' 'lokinet.tmpfiles' 'lokinet.install')
source=("$_pkgname::git+git://github.com/loki-project/loki-network" 'lokinet.sysusers' 'lokinet.tmpfiles' 'lokinet.install')
sha256sums=('SKIP' 'b8c5648e95d3725ecba246dc702856e691d6e0688554654b2712ffdea16b1c6f' 'a67f1eb92176c85dc25b2e41fb796a8c8334270bb230ccfdf9320d0a8552ca93' 'f6a0bdc4504039318fbacaf76bfdcca764440312af2c4f4f19b045c7db7ee865')
install=lokinet.install
pkgver() {
cd "$srcdir/$_pkgname/deps/llarp"
cd "$srcdir/$_pkgname"
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
@ -23,29 +23,30 @@ pkgver() {
prepare() {
cd "$srcdir/$_pkgname"
git submodule update --init --recursive
sed -i 's/sbin/bin/g;s/debian-//' debian/lokinet.service
sed -i 's/CMAKE_CXX_STANDARD 11/CMAKE_CXX_STANDARD 17/' CMakeLists.txt
}
build() {
cd "$srcdir/$_pkgname"
make
grep -q avx2 /proc/cpuinfo && AVX2=ON || AVX2=OFF
make JSONRPC=ON CLANG=ON AVX2=$AVX2
}
package() {
cd "$srcdir/$_pkgname"
install -Dm755 build/native/lokinet "$pkgdir/usr/bin/lokinet"
install -Dm755 build/native/rcutil "$pkgdir/usr/bin/lokinet-rcutil"
install -Dm755 build/lokinet "$pkgdir/usr/bin/lokinet"
install -Dm755 build/rcutil "$pkgdir/usr/bin/lokinet-rcutil"
install -Dm755 lokinet-bootstrap "$pkgdir/usr/bin/lokinet-bootstrap"
install -Dm644 debian/${_pkgname}.service "$pkgdir/usr/lib/systemd/system/${_pkgname}.service"
install -Dm644 debian/${_pkgname}.1 "$pkgdir/usr/share/man/man1/${_pkgname}.1"
install -Dm644 deps/llarp/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 $srcdir/${_pkgname}.sysusers "$pkgdir"/usr/lib/sysusers.d/${_pkgname}.conf
install -Dm644 $srcdir/${_pkgname}.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/${_pkgname}.conf

3
octave-hg/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*
!.gitignore
!PKGBUILD

58
octave-hg/PKGBUILD Normal file
View File

@ -0,0 +1,58 @@
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor : shining <shiningxc.at.gmail.com>
# Contributor : cyberdune <cyberdune@gmail.com>
_pkgname=octave
pkgname=$_pkgname-hg
pkgver=r26145.64b972120ec3
pkgrel=1
conflicts=('octave')
provides=('octave')
pkgdesc="A high-level language, primarily intended for numerical computations."
arch=('x86_64')
url="http://www.octave.org"
license=('GPL')
depends=('fftw' 'curl' 'graphicsmagick' 'glpk' 'hdf5' 'qhull' 'arpack' 'glu' 'ghostscript'
'suitesparse' 'gl2ps' 'qscintilla-qt5' 'libsndfile' 'qt5-tools' 'qrupdate')
makedepends=('gcc-fortran' 'texlive-core' 'suitesparse' 'texinfo' 'gnuplot' 'fltk' 'portaudio' 'jdk8-openjdk' 'mercurial')
optdepends=('texinfo: for help-support in octave'
'gnuplot: alternative plotting'
'portaudio: audio support'
'java-runtime: java support'
'fltk: FLTK GUI')
source=(hg+https://www.octave.org/hg/octave)
options=('!emptydirs')
validpgpkeys=('DBD9C84E39FE1AAE99F04446B05F05B75D36644B') # John W. Eaton
sha512sums=('SKIP')
build() {
cd "${srcdir}/${_pkgname}"
./bootstrap
export CFLAGS="-march=native -Ofast"
./configure --prefix=/usr --libexecdir=/usr/lib \
--enable-shared --disable-static \
--with-quantum-depth=16 \
--with-umfpack="-lumfpack -lsuitesparseconfig" \
--enable-jit
# https://mailman.cae.wisc.edu/pipermail/help-octave/2012-September/053991.html
LANG=C make
}
package(){
cd "${srcdir}/${_pkgname}"
make DESTDIR="${pkgdir}" install
# add octave library path to ld.so.conf.d
install -d "${pkgdir}/etc/ld.so.conf.d"
echo "/usr/lib/${_pkgname}/${pkgver}" > "${pkgdir}/etc/ld.so.conf.d/${_pkgname}.conf"
}
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}