blob: 87bbac69c0263555eb7d4527fd85d010c09a71bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Contributor: Adam Nielsen <malvineous@shikadi.net>
# Maintainer: Tim van Leuverden <TvanLeuverden at Gmail dot com>
#
# After install, launch by running /usr/bin/hpe_ltt
#
pkgname=hpltt
pkgver=6.5
pkgrel=1
pkgdesc="HP Library & Tape Tools - diagnostics for HP tape drives"
arch=('x86_64')
url="https://buy.hpe.com/us/en/storage/storage-software/storage-device-management-software/storeever-tape-device-management-software/hpe-library-tape-tools/p/406729"
license=('custom:HPLTT')
makedepends=('libarchive')
depends=('ncurses5-compat-libs')
options=(!strip)
validpgpkeys=('57446EFDE098E5C934B69C7DC208ADDE26C2B797')
source_x86_64=('https://downloads.hpe.com/pub/softlib2/software1/pubsw-generic/p1910951539/v241790/hpe_ltt65_linux_x86_64.tar'{,.sig})
sha256sums_x86_64=('6ebbb2a55f174f6be22ac687ca33fd6bd763298d386735e5ffceec90a9868d79'
'c601e3f1368aff542d36cdf733d9ce27dbe144f178d57de0139ab81a04d0b2d0')
package() {
bsdtar -x -f hpeltt-*.rpm || (error "Multiple .rpm files in source folder, please clean remnants from earlier build (delete $srcdir and use makepkg -c in future)" ; exit 1)
mv opt "$pkgdir/"
install -d "$pkgdir/usr/bin"
# Put a symlink in /usr/bin for ease of launch
ln -s "/opt/ltt/hpe_ltt" "$pkgdir/usr/bin/hpe_ltt"
# Don't know why any dirs need to be world-writable when the app runs as root
# anyway, let's fix
find "$pkgdir/opt/ltt" -type d -exec chmod 755 {} \;
}
|