Kaydet (Commit) e27f3257 authored tarafından sulincix's avatar sulincix

default target fixes

üst 233adb2b
......@@ -5,17 +5,18 @@ summary="example package"
description="example package for build test"
license="gplv3"
release="1"
source=(http://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz)
#source=(http://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz)
_setup(){
echo "setup" > $INSTALLDIR/hello
mkdir -p $INSTALLDIR/hello/
echo "setup" > $INSTALLDIR/hello/setup
}
_build(){
echo "build" > $INSTALLDIR/hello
echo "build" > $INSTALLDIR/hello-build
}
_install(){
echo "install" > $INSTALLDIR/hello
echo "install" > $INSTALLDIR/hello-install
}
#!/bin/bash
__write_remove(){
cd $INSTALLDIR
find | while read line
do
if [ -f $line ] ; then
echo "rm -f $line" | sed "s/\.\//\//g"
fi
done
find | while read line
do
if [ -d $line ] && [ $line != "." ] ; then
echo "rmdir $line 2>/dev/null" | sed "s/\.\//\//g"
fi
done
echo "rm -f /info/$name"
echo "rm -f /info/$name.remove"
}
_create_metadata(){
mkdir $PKGDIR/info/
......@@ -14,11 +31,10 @@ _create_metadata(){
cd $INSTALLDIR
find >> $PKGDIR/info/$name
echo "----end----" >> $PKGDIR/info/$name
__write_remove >> $PKGDIR/info/$name.remove
}
_package(){
cd $INSTALLDIR
tar -cf $PKGDIR/$name-$version.tar *
cp -prfv $INSTALLDIR/* $PKGDIR/
cd $PKGDIR
tar -cf $CURDIR/$name-$version.tar *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment