#!/bin/sh ####################################################################### # Program: trackbuild.dvd_libs # Purpose: Launch libdvdcss build script via altertrack # Author : Stuart Winter ####################################################################### PACKAGE=dvd_libs VERSION=1.0 ARCH=i686 BUILD=1 SLACKPACKAGE="${PACKAGE}-${VERSION}-${ARCH}-${BUILD}.tgz" # Resting place for newly built Slackware packages BUILDSTORE=/tmp/built-slackwarepackages/ mkdir -pm755 $BUILDSTORE # We can't reliably build the new package on a system on which it is # already present because we risk missing files from the new build of # the package if the files haven't changed in size from the last time # they were installed. if [ -f /var/log/packages/${PACKAGE}* ]; then printf "\n\nERROR: removepkg the existing version of '${PACKAGE}' first\n\n" exit 1 else which altertrack >/dev/null 2>&1 || { echo "altertrack not installed. Cannot build without it" ; exit 1 ;} fi # Download source if not already present. ./download.source # We need xap/xine*.tgz stuff from Slackware v9.1 # altertrack --showdeps \ -d "xine-lib" \ -Qp ${SLACKPACKAGE} \ ./all.build ${VERSION}