Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (44 sloc) 1.08 KB
# Contributor: Johannes Dewender arch at JonnyJD dot net
_pkgname=cov-analysis
pkgname=cov-analysis-bin
pkgver=6.5.1
pkgrel=2
pkgdesc="Coverity Scan Self-Build"
arch=('x86_64' 'i686')
url="https://scan.coverity.com/download"
license=('custom: non-free')
optdepends=()
provides=("cov-analysis=$pkgver")
conflicts=('cov-analysis')
options=()
#CARCH=i686
if [ "${CARCH}" = 'x86_64' ]; then
_arch='linux64'
_arch2='linux64'
depends=('sh' 'java-environment' 'lib32-glibc')
elif [ "${CARCH}" = 'i686' ]; then
_arch='linux32'
_arch2='linux'
depends=('sh' 'java-environment')
fi
_upstream_package="$_pkgname-$_arch-$pkgver" # .tar.gz
source=()
prepare() {
cd "$startdir"
ls
if [ -f "${_upstream_package}.tar.gz" ]; then
cp "${_upstream_package}.tar.gz" "$srcdir/"
cd "$srcdir/"
rm -rf "$_upstream_package" # remove left over directory
tar -xf "${_upstream_package}.tar.gz"
else
error "Can't find upstream package!"
plain "Please download $_upstream_package manually"
exit -1
fi
}
package() {
cd "$srcdir/$_upstream_package"
mkdir -p $pkgdir/opt/$_pkgname
cp -r * $pkgdir/opt/$_pkgname/
}
You can’t perform that action at this time.