diff options
author | saruman9 | 2016-06-15 09:54:22 +0300 |
---|---|---|
committer | saruman9 | 2016-06-15 09:54:22 +0300 |
commit | 550745ce1e3a1fcfe205c6f454ccc6a791ed9750 (patch) | |
tree | af2bfcb5ca6669e54a0add90f61aba94a8d8c592 /PKGBUILD | |
download | aur-550745ce1e3a1fcfe205c6f454ccc6a791ed9750.tar.gz |
Initial commit. Version: 4.0.833-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..71faf0ac5e68 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Alex Sarum <rum.274.4 at gmail dot com> + +_pkgname=understand +pkgname=$_pkgname-bin +_pkgbuild=833 +pkgver=4.0.$_pkgbuild +pkgrel=1 +pkgdesc="Static analysis tool for maintaining, measuring & analyzing critical or large code bases." +arch=('i686' 'x86_64') +url="https://scitools.com/" +license=('custom') +depends=('libx11' 'libxau' 'libxcb' 'libxdmcp' 'libxext' 'libtinfo5') +options=('!strip' '!upx') + +source_i686=("http://builds.scitools.com/all_builds/b$_pkgbuild/${_pkgname^}/${_pkgname^}-$pkgver-Linux-32bit.tgz" +"$_pkgname.desktop" +"$_pkgname") + +source_x86_64=("http://builds.scitools.com/all_builds/b$_pkgbuild/${_pkgname^}/${_pkgname^}-$pkgver-Linux-64bit.tgz" +"$_pkgname.desktop" +"$_pkgname") +md5sums_i686=('f4fa953527c0f71e831f5bb44739c567' + '86ea741c38198d7291d5126ef0cd17f8' + '2927bc21f24ff8776a1c601379c9f19f') +md5sums_x86_64=('1684d8f63bc8925460529992cdced458' + '86ea741c38198d7291d5126ef0cd17f8' + '2927bc21f24ff8776a1c601379c9f19f') + + +package() { + _source_arch="32" + [ "$CARCH" = "x86_64" ] && _source_arch="64" + + install -d "$pkgdir/opt" + cp -r "$srcdir/scitools" "$pkgdir/opt/" + + [ "$CARCH" = "x86_64" ] && sed -i s/linux32/linux64/ understand + install -Dm755 "$srcdir/$_pkgname" "$pkgdir/usr/bin/$_pkgname" + + install -Dm644 "$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop" + install -Dm644 "$pkgdir/opt/scitools/bin/linux$_source_arch/${_pkgname}_64.png" "$pkgdir/usr/share/pixmaps/$_pkgname.png" + + install -Dm644 "$pkgdir/opt/scitools/conf/license/readme.txt" "$pkgdir/usr/share/licenses/$pkgname/readme.txt" +} |