public
Last active

impiview for Arch Linux

  • Download Gist
PKGBUILD
Shell
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
# Maintainer : Leo von Klenze <devel@leo.von-klenze.de>
# Contributor: Martin Wimpress <code@flexion.org>
 
pkgname=ipmiview
pkgver=2.9.6
_buildnr=120316
pkgrel=1
pkgdesc="IPMIView is a management software program based on the IPMI specification Reversion 1.5 - 2.0"
arch=('i686' 'x86_64')
url="ftp://ftp.supermicro.com/utility/IPMIView/Jar/"
license=('unknown')
depends=('java-runtime')
source=("ftp://ftp.supermicro.com/utility/IPMIView/Jar/IPMIView20-Class_v${pkgver}_Build${_buildnr}.zip")
md5sums=('26374854ab7890221bf3e813eada2ab7')
 
build() {
mkdir -p ${pkgdir}/opt/IPMIView
mkdir -p ${pkgdir}/usr/bin
 
cd "${srcdir}"
cp * "${pkgdir}/opt/IPMIView"
rm "${pkgdir}/opt/IPMIView/IPMIView20-Class_v${pkgver}_Build${_buildnr}.zip"
chmod 644 "${pkgdir}/opt/IPMIView/"*
echo -e "#!/bin/sh\n\n"'mkdir -p ${HOME}/.IPMIView'"\n"'cd ${HOME}/.IPMIView'"\n\njava -Djava.library.path=/opt/IPMIView -jar /opt/IPMIView/IPMIView20.jar\n" > "${pkgdir}/opt/IPMIView/IPMIView20.sh"
chmod 755 "${pkgdir}/opt/IPMIView/IPMIView20.sh"
ln -s /opt/IPMIView/IPMIView20.sh "${pkgdir}/usr/bin/IPMIView"
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.