diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..447ac52acf01 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,95 @@ +# Maintainer: Christian Ponte <chponte AT pm DOT me> + +########################################################################## + +# Intel VTune Profiler standalone version PKGBUILD script +# Copyright 2020 Christian Ponte +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + +pkgname=intel-vtune-profiler-standalone +pkgver=2020.u2 +pkgrel=1 +pkgdesc="The standalone version of Intel VTune Profiler" +arch=('x86_64') +url="https://software.intel.com/content/www/us/en/develop/tools/vtune-profiler.html" +license=('custom') +depends=('glibc' 'attr') +makedepends=('git' 'gettext') +conflicts=('intel-vtune-profiler') +options=("!strip") +source=( + "http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/16783/vtune_profiler_2020_update2.tar.gz" + "intel-vtune-profiler.png" + "intel-vtune-profiler.desktop" + "license.txt" +) +sha256sums=( + '4d924a27a2e06ce5c79f40a2ad34a1b49ef164b6b6b241434887fcb39b0e2f3e' + '457e2d0afcf238b335abd0bc582fc6b132cb9697567649f7fede6fb2de756575' + '7ec3336a7bc9b6a81de2f6f8ce94f06881eca0fcaa4609c593aaab0d769bb167' + 'e13bba8c55cf874988dbb541d8a72f53dd0942fca48f49bfbe9d82174bb73808' +) + +build() { + echo -e "IMPORTANT INFORMATION ABOUT YOUR RIGHTS, OBLIGATIONS AND THE USE" + echo -e "OF YOUR DATA - PLEASE READ AND AGREE BEFORE DOWNLOADING," + echo -e "INSTALLING, COPYING OR USING" + echo -e "" + echo -e "The Materials about to be installed are under the End User License" + echo -e "Agreement for the Intel(R) Software Development Products (Version" + echo -e "October 2018). A copy of the license is included with it." + echo -e "" + echo -e "By downloading, installing, copying or otherwise using the" + echo -e "Materials, You agree to be bound by the terms of this Agreement." + echo -e "If You do not agree to the terms of this Agreement, do not" + echo -e "download, install, copy or otherwise use the Materials. This" + echo -e "Agreement forms a legally binding contract between you, or the" + echo -e "company or other legal entity (\"Legal Entity\") for which you" + echo -e "represent and warrant that you have the legal authority to bind" + echo -e "that Legal Entity, (each, \"You\" or \"Your\") and Intel" + echo -e "Corporation and its subsidiaries (collectively \"Intel\")" + echo -e "regarding Your use of the Materials. You affirm that You are 18" + echo -e "years old or older or, if not, Your parent, legal guardian or" + echo -e "Legal Entity must agree and enter into this Agreement on your" + echo -e "behalf." +} + +package() { + # Extract rpms + for file in $(find $srcdir -name "*.rpm"); do + bsdtar -xf $file -C $pkgdir; + done + # Create opt/intel/vtune_profiler link + ln -rs $(find $pkgdir -type d -name "vtune_profiler_20*") $pkgdir/opt/intel/vtune_profiler + # Copy icon file + mkdir -p $pkgdir/usr/share/icons/hicolor/48x48/apps && + cp $srcdir/intel-vtune-profiler.png \ + $pkgdir/usr/share/icons/hicolor/48x48/apps/intel-vtune-profiler.png + # Copy desktop file + mkdir -p $pkgdir/usr/share/applications && \ + cp $srcdir/intel-vtune-profiler.desktop \ + $pkgdir/usr/share/applications/intel-vtune-profiler.desktop + # Copy license file + mkdir -p $pkgdir/usr/share/licenses/$pkgname && \ + cp $srcdir/license.txt $pkgdir/usr/share/licenses/$pkgname/license.txt + # Create link in /etc/profile.d/ + mkdir -p $pkgdir/etc/profile.d && \ + ln -s /opt/intel/vtune_profiler/vtune-vars.sh $pkgdir/etc/profile.d/vtune-vars.sh +} |