# Maintainer: Jon Gjengset pkgname=intel-vtune-amplifier-community pkgrel=1 pkgver=2019.5.0.601413 options=(!strip libtool) url="https://software.intel.com/en-us/vtune/choose-download#standalone" arch=('x86_64') license=('custom') makedepends=('libarchive' 'lzop' 'cpio' 'gtk3' 'alsa-lib' 'libxss' 'nss') pkgdesc="VTune Amplifier -- Performance profiler for serial and parallel performance analysis" depends=('gtk3' 'alsa-lib' 'libxss' 'nss') conflicts=('intel-parallel-studio-xe' 'intel-vtune-amplifier') _year='2019' _update='5' _base="vtune_amplifier_${_year}_update${_update}" source=( "http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/15703/${_base}.tar.gz" 'EULA.txt' 'vtune-group.conf' ) sha256sums=('7b2124123347bbb593d1b8f8cf858d88829a05605769cba5c39444b0aa545473' 'e13bba8c55cf874988dbb541d8a72f53dd0942fca48f49bfbe9d82174bb73808' '6d57b60d701db9551c5bbcc7bf5bc528c928513dabb28a2c85cc45695438381b') if [ -z "$FORCE_PKGEXT" ]; then PKGEXT='.pkg.tar.lzo' echo "Overriding the default PKGEXT with '${PKGEXT}' to save compression time" echo "(change PKGEXT in the PKGBUILD or use FORCE_PKGEXT on the command line" echo " to override PKGEXT set by the package)." else echo "Overriding PKGEXT with FORCE_PKGEXT='${FORCE_PKGEXT}'" PKGEXT=$FORCE_PKGEXT fi if [ "$PKGEXT" = ".pkg.tar.xz" ]; then echo "--------------------------------------------------------------------" echo "This PKGBUILD may need several minutes when XZ compressor is used!" echo " - Change PKGEXT in PKGBUILD or define FORCE_PKGEXT on the" echo " command line to use a faster compressor, e.g. .pkg.tar.lzo" echo "--------------------------------------------------------------------" fi build_() { grep "Build Number:" "$srcdir/${_base}/support.txt" | awk '{print $3}' } pkgver() { echo "${_year}.${_update}.0.$(build_)" } prepare() { echo -e "-----------------------------------------------------------------------------------" echo -e "\e[1mIMPORTANT - READ BEFORE COPYING, INSTALLING, OR USING.\e[0m" echo -e "" echo -e "Do not copy, install, or use the \"Materials\" provided under this license agreement (\"Agreement\"), until you" echo -e "have carefully read the following terms and conditions." echo -e "" echo -e "By copying, installing, or otherwise using the Materials, you agree to be bound by the terms of this" echo -e "Agreement. If you do not agree to the terms of this Agreement, do not copy, install, or use the Materials." echo -e " - A copy of the EULA has been copied in the PKGBUILD directory; plase read carefully the terms and " echo -e " - conditions of the Intel license before installing the packages. " echo -e "-----------------------------------------------------------------------------------" } build() { cd "$srcdir/${_base}" cfg=$(mktemp /tmp/vtune-silent-XXXXXX.cfg) cat > "$cfg" < "$pkgdir/etc/profile.d/intel_vtune-amplifier.sh" <