Commit 630a9b71 authored by Neofytos Kolokotronis's avatar Neofytos Kolokotronis
Browse files

Merge branch 'testing' of ssh://git.chakralinux.org:/core into testing

parents 1a453b7a 5926c928
......@@ -5,7 +5,7 @@ source ../frameworks.conf
pkgname=attica-qt5
_pkgname=attica
pkgver=${KFVersion}
pkgrel=1
pkgrel=2
arch=('x86_64')
url='https://projects.kde.org/projects/kdesupport/${_pkgname}'
pkgdesc='A Qt5 library that implements the Open Collaboration Services API'
......
......@@ -2,7 +2,7 @@
pkgname=aubio
pkgver=0.4.2
pkgrel=1
pkgrel=2
pkgdesc="A library for audio labelling"
arch=('x86_64')
url="http://aubio.org/"
......@@ -36,4 +36,4 @@ package() {
# python interface
(cd python && python2 setup.py install --root="$pkgdir" --optimize=1)
}
\ No newline at end of file
}
......@@ -3,7 +3,7 @@ source ../frameworks.conf
pkgname=baloo
pkgver=${KFVersion}
pkgrel=1
pkgrel=2
pkgdesc="A framework for searching and managing metadata"
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/baloo'
......
#
# Core Packages for Chakra, part of chakraos.org
#
pkgname=bash
_basever=4.4
_patchlevel=005 #prepare for some patches
_patchlevel=012 #prepare for some patches
pkgver=$_basever.$_patchlevel
pkgrel=1
pkgdesc="The GNU Bourne Again shell"
......@@ -13,7 +9,7 @@ license=('GPL')
url="http://www.gnu.org/software/bash/bash.html"
groups=('base')
backup=(etc/bash.bash{rc,_logout} etc/skel/.bash{rc,_profile,_logout})
depends=('readline>=6.3' 'glibc')
depends=('readline>=7.0' 'glibc')
optdepends=('bash-completion: for tab completion')
provides=('sh')
install=bash.install
......@@ -23,6 +19,25 @@ source=(https://ftp.gnu.org/gnu/bash/bash-$_basever.tar.gz{,.sig}
dot.bash_logout
system.bashrc
system.bash_logout)
sha1sums=('8de012df1e4f3e91f571c3eb8ec45b43d7c747eb'
'SKIP'
'3211397399c367a501d103d36abfe5c7cadfeab2'
'672c3c0c28c3642a5cff0e4093ff98359c747ff0'
'9fd0cfda5b85651169f8761a834941b1f6f53952'
'895ffd3f5c729271859a659c4ca17aefc3fda927'
'0bc4dc72ef407eefe27b6ba5b384ccddb3e0852b'
'b0a20634e049a7b747703235b96ac0da10215d99'
'c9b7329897295301879a9600d96b2182ea2023b1'
'21cf7e0c6151de7fe8aca0bab8deb601bac2849e'
'32789657933c288d81210dd96a6b08e67207b593'
'8eee9cf9997215bd14f53dfc25c97186cee9437c'
'59d9e79adb1fc35e086caa0fa2af49381fe8b2f5'
'8924cde74fbb4fafeaf0ff6b5e4e94fcd2c2b98a'
'b38e9df20869643ef9388cbab585610a20ccc847'
'4bd44109ff79f0d6da19c27948dc40db9598da85'
'31180db58d25591f0744fc6923df1f8a97f0d19b'
'240c287dc60cb69185a2a05b1341bfceafd1071a'
'6dcceca364953498d3eb0c18c49fb0f3374fa3c2')
validpgpkeys=('7C0135FB088AAF6C66C650B9BB5869F064EA74AB') # Chet Ramey
if [[ $((10#${_patchlevel})) -gt 0 ]]; then
......@@ -47,7 +62,8 @@ build() {
_bashconfig=(-DDEFAULT_PATH_VALUE=\'\"/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin\"\'
-DSTANDARD_UTILS_PATH=\'\"/usr/bin:/usr/sbin\"\'
-DSYS_BASHRC=\'\"/etc/bash.bashrc\"\'
-DSYS_BASH_LOGOUT=\'\"/etc/bash.bash_logout\"\')
-DSYS_BASH_LOGOUT=\'\"/etc/bash.bash_logout\"\'
-DNON_INTERACTIVE_LOGIN_SHELLS)
export CFLAGS="${CFLAGS} ${_bashconfig[@]}"
./configure --prefix=/usr --with-curses --enable-readline \
......@@ -76,18 +92,3 @@ package() {
install -m644 ${srcdir}/dot.bash_profile ${pkgdir}/etc/skel/.bash_profile
install -m644 ${srcdir}/dot.bash_logout ${pkgdir}/etc/skel/.bash_logout
}
md5sums=('148888a7c95ac23705559b6f477dfe25'
'SKIP'
'7b50480e812f4b2bbbec8ba45608da54'
'2902e0fee7a9168f3a4fd2ccd60ff047'
'42f4400ed2314bd7519c020d0187edc5'
'3546099a1b2f667adc9794f52e78e35b'
'472f536d7c9e8250dc4568ec4cfaf294'
'817d01a6c0af6f79308a8b7b649e53d8'
'765e14cff12c7284009772e8e24f2fe0'
'49e7da93bf07f510a2eb6bb43ac3e5a2'
'4557d674ab5831a5fa98052ab19edaf4'
'cce96dd77cdd1d293beec10848f6cbb5')
pkgname=binutils
pkgver=2.27
pkgrel=3
pkgver=2.28
pkgrel=1
_commit=7fa393306ed8b93019d225548474c0540b8928f7
pkgdesc="A set of programs to assemble and manipulate binary and object files"
arch=('x86_64')
url="http://www.gnu.org/software/binutils/"
license=('GPL')
groups=('base-devel')
depends=('glibc>=2.24' 'zlib')
depends=('glibc>=2.25' 'zlib')
makedepends=('git')
checkdepends=('dejagnu' 'bc')
conflicts=('binutils-multilib')
replaces=('binutils-multilib')
options=('!distcc' '!ccache' 'staticlibs')
install=binutils.install
#source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2{,.sig}
# binutils-e9c1bdad.patch)
source=(git://sourceware.org/git/binutils-gdb.git#commit=2870b1ba)
options=('staticlibs' '!distcc' '!ccache')
source=(git+https://sourceware.org/git/binutils-gdb.git#commit=${_commit})
md5sums=('SKIP')
validpgpkeys=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93') # Tristan Gingold
prepare() {
cd ${srcdir}/binutils-gdb
cd binutils-gdb
# hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
......@@ -28,22 +26,29 @@ prepare() {
}
build() {
cd ${srcdir}/binutils-build
cd binutils-build
${srcdir}/binutils-gdb/configure --prefix=/usr \
../binutils-gdb/configure \
--prefix=/usr \
--with-lib-path=/usr/lib:/usr/local/lib \
--with-bugurl=http://chakralinux.org/bugtracker \
--enable-threads --enable-shared --with-pic \
--enable-ld=default --enable-gold --enable-plugins \
--disable-werror --disable-gdb # we have an extra gdb package, so we do not build gdb from binutils
--enable-threads \
--enable-shared \
--enable-ld=default \
--enable-gold \
--enable-plugins \
--enable-deterministic-archives \
--disable-werror \
--disable-gdb # we have an extra gdb package, so we do not build gdb from binutils
# check the host environment and makes sure all the necessary tools are available
make configure-host
make tooldir=/usr
}
check() {
cd ${srcdir}/binutils-build
cd binutils-build
# unset LDFLAGS as testsuite makes assumptions about which ones are active
# ignore failures in gold testsuite...
......@@ -51,7 +56,7 @@ check() {
}
package() {
cd ${srcdir}/binutils-build
cd binutils-build
make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
# Remove unwanted files
......@@ -59,4 +64,6 @@ package() {
# No shared linking to these files outside binutils
rm ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
echo "INPUT ( /usr/lib/libbfd.a -liberty -lz -ldl )" > "$pkgdir"/usr/lib/libbfd.so
echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" > "$pkgdir"/usr/lib/libopcodes.so
}
......@@ -3,7 +3,7 @@ source ../plasma.conf
pkgname=bluedevil
pkgver=${PVersion}
pkgrel=1
pkgrel=2
pkgdesc="Integrate the Bluetooth technology within KDE workspace and applications"
arch=('x86_64')
url='https://projects.kde.org/projects/kde/workspace/bluedevil'
......
......@@ -2,7 +2,7 @@ source ../frameworks.conf
pkgname=bluez-qt
pkgver=${KFVersion}
pkgrel=1
pkgrel=2
pkgdesc='Qt wrapper for Bluez 5 DBus API'
arch=('x86_64')
url='https://projects.kde.org/projects/kde/workspace/bluez-qt'
......@@ -11,8 +11,10 @@ depends=('qt5-declarative' 'bluez')
makedepends=('extra-cmake-modules')
groups=(kf5)
options=("debug")
source=("${KFServer}/${pkgname}-${pkgver}.tar.xz")
sha256sums=( $(getSum ${pkgname}) )
source=("${KFServer}/${pkgname}-${pkgver}.tar.xz"{,.sig})
sha256sums=( $(getSum ${pkgname})
SKIP)
validpgpkeys=( ${KFvalidpgpkeys} )
prepare() {
mkdir -p build
......
......@@ -7,35 +7,29 @@
pkgbase=boost
pkgname=('boost-libs' 'boost')
pkgver=1.60.0
pkgver=1.63.0
_boostver=${pkgver//./_}
pkgrel=2
pkgdesc="Free peer-reviewed portable C++ source libraries"
pkgrel=1
url='http://www.boost.org/'
arch=('x86_64')
url="http://www.boost.org/"
license=('custom')
makedepends=('icu' 'python2' 'python3' 'bzip2' 'zlib')
source=("http://downloads.sourceforge.net/${pkgbase}/${pkgbase}_${_boostver}.tar.gz")
sha1sums=('ac74db1324e6507a309c5b139aea41af624c8110')
license=('custom')
prepare() {
cd "${srcdir}/${pkgbase}_${_boostver}"
}
makedepends=('icu' 'python' 'python2' 'bzip2' 'zlib' 'openmpi')
source=(https://downloads.sourceforge.net/project/${pkgbase}/${pkgbase}/${pkgver}/${pkgbase}_${_boostver}.tar.bz2)
sha256sums=('beae2529f759f6b3bf3f4969a19c2e9d6f0c503edcb2de4a61d1428519fcb3b0')
build() {
cd "${srcdir}/${pkgbase}_${_boostver}"
_stagedir="${srcdir}/stagedir"
export _stagedir="${srcdir}/stagedir"
local JOBS="$(sed -e 's/.*\(-j *[0-9]\+\).*/\1/' <<< ${MAKEFLAGS})"
./bootstrap.sh --with-toolset=gcc --with-icu --with-python=/usr/bin/python2
cd ${pkgbase}_${_boostver}
./bootstrap.sh --with-toolset=gcc --with-icu --with-python=/usr/bin/python2
_bindir="bin.linuxx86_64"
install -Dm755 tools/build/src/engine/${_bindir}/b2 "${_stagedir}"/bin/b2
# Support for OpenMPI
echo "using mpi ;" >> project-config.jam
# Add an extra python version. This does not replace anything and python 2.x
# need to be the default.
echo "using python : 3.5 : /usr/bin/python3 : /usr/include/python3.5m : /usr/lib ;" \
......@@ -59,43 +53,79 @@ build() {
link=shared,static \
toolset=gcc \
python=2.7 \
cflags="${CPPFLAGS} ${CFLAGS} -O3" linkflags="${LDFLAGS}" \
cflags="${CPPFLAGS} ${CFLAGS} -fPIC -O3" \
cxxflags="${CPPFLAGS} ${CXXFLAGS} -std=c++14 -fPIC -O3" \
linkflags="${LDFLAGS}" \
--layout=system \
${JOBS} \
\
--prefix="${_stagedir}" \
install
# because b2 in boost 1.62.0 doesn't seem to respect python parameter, we
# need another run for liboost_python3.so
sed -e '/using python/ s@;@: /usr/include/python${PYTHON_VERSION/3*/${PYTHON_VERSION}m} ;@' \
-i bootstrap.sh
./bootstrap.sh --with-toolset=gcc --with-icu --with-python=/usr/bin/python3 \
--with-libraries=python
"${_stagedir}"/bin/b2 clean
"${_stagedir}"/bin/b2 \
variant=release \
debug-symbols=off \
threading=multi \
runtime-link=shared \
link=shared,static \
toolset=gcc \
python=3.5 \
cflags="${CPPFLAGS} ${CFLAGS} -fPIC -O3" \
cxxflags="${CPPFLAGS} ${CXXFLAGS} -std=c++14 -fPIC -O3" \
linkflags="${LDFLAGS}" \
--layout=system \
${JOBS} \
\
--prefix="${_stagedir}/python3" \
--with-python \
install
}
package_boost() {
pkgdesc="Free peer-reviewed portable C++ source libraries - Development"
pkgdesc='Free peer-reviewed portable C++ source libraries - development headers'
depends=("boost-libs=${pkgver}")
optdepends=('python2: for python2 bindings'
'python3: for python3 bindings'
'boost-build: to use boost jam for building your project.')
options=('staticlibs')
_stagedir="${srcdir}/stagedir"
install -dm755 "${pkgdir}"/usr
cp -a "${_stagedir}"/{bin,include,share} "${pkgdir}"/usr
install -d "${pkgdir}"/usr/lib
find "${_stagedir}"/lib -name \*.a -exec mv {} "${pkgdir}"/usr/lib \;
cp -a "${_stagedir}"/lib/*.a "${pkgdir}"/usr/lib/
install -Dm644 "${srcdir}/"${pkgbase}_${_boostver}/LICENSE_1_0.txt \
"${pkgdir}"/usr/share/licenses/boost/LICENSE_1_0.txt
ln -s /usr/bin/b2 ${pkgdir}/usr/bin/bjam || msg "faulty"
install -Dm644 "${_stagedir}"/python3/lib/libboost_python3.a \
"${pkgdir}"/usr/lib/libboost_python3.a
ln -s /usr/bin/b2 "$pkgdir"/usr/bin/bjam
}
package_boost-libs() {
pkgdesc="Free peer-reviewed portable C++ source libraries - Runtime"
pkgdesc='Free peer-reviewed portable C++ source libraries - runtime libraries'
depends=('bzip2' 'zlib' 'icu')
optdepends=('openmpi: for mpi support')
_stagedir="${srcdir}/stagedir"
install -d -m 755 "${pkgdir}"/usr
# powerdns-recursor keeps being rebuild against outdated boost-libs
provides=('libboost_context.so')
install -dm755 "${pkgdir}"/usr
cp -a "${_stagedir}"/lib "${pkgdir}"/usr
rm -f "${pkgdir}"/usr/lib/*.a
cp -a "${_stagedir}"/python3/lib/libboost_python3* "${pkgdir}"/usr/lib
rm "${pkgdir}"/usr/lib/*.a
install -D -m 644 "${srcdir}/"${pkgbase}_${_boostver}/LICENSE_1_0.txt \
install -Dm644 "${srcdir}/"${pkgbase}_${_boostver}/LICENSE_1_0.txt \
"${pkgdir}"/usr/share/licenses/boost-libs/LICENSE_1_0.txt
}
......@@ -4,7 +4,7 @@ source ../plasma.conf
pkgname=breeze-grub
pkgver=${PVersion}
pkgrel=1
pkgrel=2
pkgdesc="Breeze theme for GRUB"
arch=(any)
url='https://projects.kde.org/breeze-grub'
......
......@@ -2,7 +2,7 @@ source ../plasma.conf
pkgname=breeze-gtk
pkgver=${PVersion}
pkgrel=1
pkgrel=2
pkgdesc="Breeze port for GTK. (GIT version)"
arch=('x86_64')
url='https://quickgit.kde.org/?p=breeze-gtk.git'
......
......@@ -3,7 +3,7 @@ source ../frameworks.conf
pkgname=breeze-icons
pkgver=${KFVersion}
pkgrel=1
pkgrel=2
pkgdesc='Breeze icon themes'
arch=('any')
url='https://projects.kde.org/projects/kde/workspace/breeze'
......@@ -11,8 +11,10 @@ license=('LGPL')
groups=('kf5')
optdepends=('oxygen-icons: fallback icon theme')
makedepends=('extra-cmake-modules' 'qt5-base')
source=("${KFServer}/${pkgname}-${pkgver}.tar.xz")
sha256sums=( $(getSum ${pkgname}) )
source=("${KFServer}/${pkgname}-${pkgver}.tar.xz"{,.sig})
sha256sums=( $(getSum ${pkgname})
SKIP)
validpgpkeys=( ${KFvalidpgpkeys} )
prepare() {
mkdir -p build
......
......@@ -2,7 +2,7 @@ source ../plasma.conf
pkgname=breeze-plymouth
pkgver=${PVersion}
pkgrel=1
pkgrel=2
pkgdesc="Breeze theme for Plymouth"
arch=('x86_64')
url='https://projects.kde.org/projects/kdereview/breeze-plymouth'
......
......@@ -4,7 +4,7 @@ source ../plasma.conf
pkgbase=breeze
pkgname=('breeze' 'breeze-kde4')
pkgver=${PVersion}
pkgrel=1
pkgrel=2
pkgdesc='Artwork, styles and assets for the Breeze visual style for the Plasma Desktop'
arch=('x86_64')
url='https://projects.kde.org/projects/kde/workspace/breeze'
......
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer: Samir Benmendil <ram-z[at]chakra-project[dot]org>
pkgname=ca-certificates-java
pkgver=20140324
pkgrel=1
pkgdesc='Common CA certificates (JKS keystore)'
arch=('any')
url='http://packages.qa.debian.org/c/ca-certificates-java.html'
license=('GPL')
depends=('ca-certificates')
makedepends=('maven')
checkdepends=('junit')
install='ca-certificates-java.install'
backup=('etc/default/cacerts')
source=("http://ftp.debian.org/debian/pool/main/c/${pkgname}/${pkgname}_${pkgver}.tar.xz"
'init-jks-keystore' 'jks-keystore.hook')
md5sums=('18d945321d2cc391124d1c5f18617814'
'711212885d25fca96ad6689af5d7ec2a'
'0beeef887fbab98e7d1d40ec0cd455dd')
prepare() {
mkdir "${srcdir}/m2_repo"
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
mvn package -Dmaven.repo.local="${srcdir}/m2_repo" -Dmaven.test.skip=true
}
check() {
cd ${srcdir}/${pkgname}-${pkgver}
mvn -Dmaven.repo.local="${srcdir}/m2_repo" test
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
install -d -m755 ${pkgdir}/etc/ssl/certs/java
install -D -m600 debian/default ${pkgdir}/etc/default/cacerts
install -D -m644 target/ca-certificates-java-${pkgver}.jar ${pkgdir}/usr/share/ca-certificates-java/ca-certificates-java.jar
install -D -m755 ${srcdir}/init-jks-keystore ${pkgdir}/usr/bin/init-jks-keystore
install -D -m755 ${srcdir}/jks-keystore.hook ${pkgdir}/etc/ca-certificates/update.d/jks-keystore
}
post_install() {
if [ ! -f etc/ssl/certs/java/cacerts ]; then
if which java >/dev/null 2>&1; then
usr/bin/init-jks-keystore
fi
fi
}
post_upgrade() {
post_install
}
post_remove() {
rm -rf etc/ssl/certs/java
}
#!/bin/sh
storepass='changeit'
. /etc/default/cacerts
JAR=/usr/share/ca-certificates-java/ca-certificates-java.jar
find /etc/ssl/certs -name '*.pem' -printf "+%p\n" | \
java -Xmx64m -cp $JAR org.debian.security.UpdateCertificates -storepass "$storepass" >/dev/null
if [ $? -eq 0 ]; then
echo "done."
fi
#! /bin/sh
storepass='changeit'
. /etc/default/cacerts
echo ""
if [ "$cacerts_updates" != yes ] || [ "$CACERT_UPDATES" = disabled ]; then
echo "updates of cacerts keystore disabled."
exit 0
fi
JAR=/usr/share/ca-certificates-java/ca-certificates-java.jar
java -Xmx64m -jar $JAR -storepass "$storepass"
echo "done."
pkgbase=ca-certificates
pkgname=(ca-certificates-utils ca-certificates)
pkgver=20160425
pkgver=20170213
pkgrel=1
pkgdesc='Common CA certificates'
arch=('any')
......@@ -8,7 +8,7 @@ url='http://pkgs.fedoraproject.org/cgit/ca-certificates.git'
license=('GPL2')
makedepends=('asciidoc' 'p11-kit')
source=(update-ca-trust update-ca-trust.8.txt)
sha256sums=('746d2cce8ec107fa3b7aaa246d69a7e238c3d2ac5cd82c5aeed996fe9cb0a874'
sha256sums=('0f3e97846494ad41330352bb6b2fa0f8d264bf16d8d02f04b759ca8c26b3e092'
'5b2d3dfaac00027ff169c34ded4b5115a1332c1596c30eb0e41bbfb1a7f959fc')
build() {
......
#!/bin/bash
#!/bin/sh
#set -vx
# At this time, while this script is trivial, we ignore any parameters given.
# However, for backwards compatibility reasons, future versions of this script must
# support the syntax "update-ca-trust extract" trigger the generation of output
# files in $DEST.
DEST=/etc/ca-certificates/extracted
# The directory-format extractors remove all files in the target directory, but not directories or files therein
trust extract --overwrite --format=pem-directory-hash --filter=ca-anchors --purpose server-auth $DEST/cadir
trust extract --overwrite --format=pem-bundle --filter=ca-anchors --purpose server-auth $DEST/tls-ca-bundle.pem
trust extract --overwrite --format=pem-bundle --filter=ca-anchors --purpose email $DEST/email-ca-bundle.pem
trust extract --overwrite --format=pem-bundle --filter=ca-anchors --purpose code-signing $DEST/objsign-ca-bundle.pem
trust extract --overwrite --format=openssl-bundle --filter=certificates $DEST/ca-bundle.trust.crt
# We don't want to have to remove everything from the certs directory but neither
# do we want to leave stale certs around, so symlink it all from somewhere else
for f in $DEST/cadir/*; do
ln -fsr -t /etc/ssl/certs "$f"
done
# Now find and remove all broken symlinks
find -L /etc/ssl/certs -maxdepth 1 -type l -delete
DEST=/etc/pki/ca-trust/extracted
# Java bundle
trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose server-auth /etc/ssl/certs/java/cacerts
# OpenSSL PEM bundle that includes trust flags
# (BEGIN TRUSTED CERTIFICATE)
/usr/bin/p11-kit extract --format=openssl-bundle --filter=certificates --overwrite --comment $DEST/openssl/ca-bundle.trust.crt
/usr/bin/p11-kit extract --format=pem-bundle --filter=ca-anchors --overwrite --comment --purpose server-auth $DEST/pem/tls-ca-bundle.pem
/usr/bin/p11-kit extract --format=pem-bundle --filter=ca-anchors --overwrite --comment --purpose email $DEST/pem/email-ca-bundle.pem
/usr/bin/p11-kit extract --format=pem-bundle --filter=ca-anchors --overwrite --comment --purpose code-signing $DEST/pem/objsign-ca-bundle.pem
/usr/bin/p11-kit extract --format=java-cacerts --filter=ca-anchors --overwrite --purpose server-auth $DEST/java/cacerts
# $Id$
# Contributions from Arch:
# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: Christopher Reimer <mail+aur@c-reimer.de>
pkgname=cargo
pkgver=0.15.0
pkgver=0.17.0
pkgrel=1
pkgdesc='Rust package manager'
url='http://crates.io/'
arch=('x86_64' 'i686')
arch=('x86_64')
license=('APACHE' 'MIT' 'custom')
depends=('curl' 'rust')
makedepends=('git' 'setconf' 'python2' 'cmake' 'cargo')
optdepends=('gcc: for compiling C source code with gcc'
'clang: for compiling C source code with clang')
groups=('rust')
options=('!emptydirs')
source=("git+https://github.com/rust-lang/cargo.git#tag=$pkgver")
md5sums=('SKIP')
source=("git+https://github.com/rust-lang/cargo.git#tag=$pkgver"
"git+https://github.com/rust-lang/rust-installer.git")
md5sums=('SKIP'
'SKIP')
prepare() {
cd "$pkgname"
git submodule update --init --recursive
sed 's^share/doc^share/licenses^g' -i Makefile.in
git submodule init
git config submodule.src/rust-installer.url "$srcdir"/rust-installer
git submodule update
# Upstream forgot to bump the version number, FS#51939
setconf Makefile.in CFG_RELEASE_NUM="$pkgver"