git2talimat

This commit is contained in:
milisman 2016-05-27 20:34:53 +03:00
parent 416c10aa77
commit f109013ea8
1 changed files with 25 additions and 4 deletions

View File

@ -1,11 +1,32 @@
packager="milisarge"
account="$1"
name="$2"
version="$3"
file="$name.html"
url=https://github.com/"$account/$name"
curl -k $url > "$file"
desc=`sed -n 's|[^<]*<span itemprop="about">\([^<]*\)</span>[^<]*|\1\n|gp' $file`
echo "# description:$desc"
echo "# url:$url"
echo "# packager:$packager"
echo "# depends on: "
mkdir -p $name
tee "$name/talimat" > /dev/null <<EOF
# description:$desc
# url:$url
# packager:$packager
# depends on:
name=$name
version=$version
release=1
source=(https://github.com/$account/$name/archive/$version.tar.gz)
build () {
mv $DERLEME_KAYNAKDIZIN/$version.tar.gz $DERLEME_KAYNAKDIZIN/$name-$version.tar.gz
cd $name-$version
./autogen.sh
./configure --prefix=/usr
make
make DESTDIR=$PKG install
}
EOF