#!/bin/sh
#
# kTm port by Juzer
#
#       regards to hns & psych
#

# local config:
BUILD="1"
PACKAGE="lshw"

check() {
# Checking for configuration
# Downloading sources lists
INSTALLED="`ls -1 $PACKAGES/packages/|grep $PACKAGE-|cut -d "-" -f 1,2`"
$WGET -q http://ezix.sourceforge.net/software/files/
NEW=`grep lshw index.html |grep tar.gz|cut -d '"' -f 6|sed -e s/.tar.*//|sort -t . -k 2|tail -1`
#Checking for new version
    checkpkg
# clean
rm index.html
}

download() {
# Downloading version from "${VERFILE}"
$WGET -P $DOWNL http://ezix.sourceforge.net/software/files/$SRC.tar.gz
}

build() {
# Creating new
tar zxvf $DOWNL/$SRC.tar.gz
cd $SRC
make || exit
make install DESTDIR=$PKG || exit
mv $PKG/usr/share/man/ $PKG/usr/
    postbuild
}

source "${DATA:-/usr/lib/ktm}/ktm.ports.sh"

