git2talimat
This commit is contained in:
parent
416c10aa77
commit
f109013ea8
|
@ -1,11 +1,32 @@
|
||||||
packager="milisarge"
|
packager="milisarge"
|
||||||
account="$1"
|
account="$1"
|
||||||
name="$2"
|
name="$2"
|
||||||
|
version="$3"
|
||||||
file="$name.html"
|
file="$name.html"
|
||||||
url=https://github.com/"$account/$name"
|
url=https://github.com/"$account/$name"
|
||||||
|
|
||||||
curl -k $url > "$file"
|
curl -k $url > "$file"
|
||||||
desc=`sed -n 's|[^<]*<span itemprop="about">\([^<]*\)</span>[^<]*|\1\n|gp' $file`
|
desc=`sed -n 's|[^<]*<span itemprop="about">\([^<]*\)</span>[^<]*|\1\n|gp' $file`
|
||||||
echo "# description:$desc"
|
mkdir -p $name
|
||||||
echo "# url:$url"
|
|
||||||
echo "# packager:$packager"
|
tee "$name/talimat" > /dev/null <<EOF
|
||||||
echo "# depends on: "
|
# 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
|
||||||
|
|
Loading…
Reference in New Issue