mirror of
https://github.com/KeithDHedger/LFSPkgBuilds.git
synced 2026-01-27 08:04:20 +00:00
first commit to github
This commit is contained in:
53
LFSPkgBuildScripts/python/fuse-python/fuse-python.LFSBuild
Executable file
53
LFSPkgBuildScripts/python/fuse-python/fuse-python.LFSBuild
Executable file
@ -0,0 +1,53 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
. /usr/share/LFSPkg/LFSFunctions
|
||||
|
||||
DEPENDS="python-2.7.9 fuse-2.9.3"
|
||||
if ! lfspkg -B "$DEPENDS";then
|
||||
exit 100
|
||||
fi
|
||||
|
||||
PKGNAME="fuse-python"
|
||||
TARNAME="$PKGNAME"
|
||||
VERSION="0.2.1"
|
||||
BUILD=1
|
||||
SECTION="PYTHON"
|
||||
SUFFIX="LFSPKG"
|
||||
TARBALL="${TARNAME}-${VERSION}.tar.gz"
|
||||
gettar "http://softlayer-ams.dl.sourceforge.net/project/fuse/fuse-python/0.2.1/${TARBALL}" $SECTION
|
||||
|
||||
PKG="${OUTPUT}/${PKGNAME}"
|
||||
|
||||
DOWHAT=${1:-"build"}
|
||||
rm -rf "$PKG" || true
|
||||
mkdir -p "$PKG"
|
||||
tar -xvf "${SOURCEARCHIVES}/${SECTION}/${TARBALL}"
|
||||
|
||||
pushd "${TARNAME}-${VERSION}"
|
||||
python setup.py build || exit 1
|
||||
python setup.py install --root=$PKG --prefix=/usr || exit 1
|
||||
popd
|
||||
|
||||
checketc "$PKG"
|
||||
packageclean "$PKG"
|
||||
|
||||
pushd "$PKG"
|
||||
/usr/bin/lfspkg -n "$PKGNAME" -p "$VERSION" -d $SECTION -b $BUILD -s $SUFFIX -m
|
||||
popd
|
||||
|
||||
case $DOWHAT in
|
||||
up*)
|
||||
lfspkg "^${PKGNAME}-[0-9][0-9]*" "${OUTPUT}/${SECTION}/${PKGNAME}-${VERSION}-${BUILD}_${SECTION}_${SUFFIX}.tar.gz" -u
|
||||
;;
|
||||
"install")
|
||||
lfspkg "${OUTPUT}/${SECTION}/${PKGNAME}-${VERSION}-${BUILD}_${SECTION}_${SUFFIX}.tar.gz" -i
|
||||
;;
|
||||
"build")
|
||||
echo "Just built"
|
||||
;;
|
||||
*)
|
||||
echo "*** Unknown command ***"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
rm -r "$PKG" "${TARNAME}-${VERSION}"
|
||||
Reference in New Issue
Block a user