Skip to content

Instantly share code, notes, and snippets.

@ReeseWang
Created July 2, 2022 10:20
Show Gist options
  • Save ReeseWang/eb4ccaf3475fe91ec68a4f50e20b9606 to your computer and use it in GitHub Desktop.
Save ReeseWang/eb4ccaf3475fe91ec68a4f50e20b9606 to your computer and use it in GitHub Desktop.
PKGBUILD for HP Library & Tape Tools 6.3
# Contributor: Reese Wang <thuwrx10 at gmail dot com>
# Contributor: Adam Nielsen <[email protected]>
# Maintainer: Adam Nielsen <[email protected]>
#
# After install, launch by running /usr/bin/hpe_ltt
#
pkgname=hpltt
pkgver=6.3
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' 'libxcrypt-compat')
options=(!strip)
source_x86_64=('https://downloads.hpe.com/pub/softlib2/software1/pubsw-generic/p1910951539/v216477/hpe_ltt63_linux_x86_64.tar')
sha256sums_x86_64=('58db89807152fc903b84bd76123e098c5cbf4aaa5f820402ef8a206ad0dc8cab')
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 {} \;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment