2016-05-27 20:31:25 +02:00
|
|
|
. /etc/mpsd.conf
|
|
|
|
|
2016-05-27 03:48:46 +02:00
|
|
|
packager="milisarge"
|
2016-05-27 03:34:41 +02:00
|
|
|
account="$1"
|
|
|
|
name="$2"
|
2016-05-27 19:34:53 +02:00
|
|
|
version="$3"
|
2016-05-27 03:34:41 +02:00
|
|
|
file="$name.html"
|
2016-05-27 03:48:46 +02:00
|
|
|
url=https://github.com/"$account/$name"
|
2016-05-27 19:34:53 +02:00
|
|
|
|
2016-05-27 03:48:46 +02:00
|
|
|
curl -k $url > "$file"
|
2016-05-27 03:34:41 +02:00
|
|
|
desc=`sed -n 's|[^<]*<span itemprop="about">\([^<]*\)</span>[^<]*|\1\n|gp' $file`
|
2016-05-27 19:34:53 +02:00
|
|
|
mkdir -p $name
|
|
|
|
|
|
|
|
tee "$name/talimat" > /dev/null <<EOF
|
|
|
|
# description:$desc
|
|
|
|
# url:$url
|
|
|
|
# packager:$packager
|
2016-05-27 22:43:46 +02:00
|
|
|
# Depends on:
|
2016-05-27 19:34:53 +02:00
|
|
|
|
|
|
|
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
|