git2talimat.sh 663 B

1234567891011121314151617181920212223242526272829303132333435
  1. . /etc/mpsd.conf
  2. packager="milisarge"
  3. account="$1"
  4. name="$2"
  5. version="$3"
  6. file="$name.html"
  7. url=https://github.com/"$account/$name"
  8. curl -k $url > "$file"
  9. desc=`sed -n 's|[^<]*<span itemprop="about">\([^<]*\)</span>[^<]*|\1\n|gp' $file`
  10. mkdir -p $name
  11. tee "$name/talimat" > /dev/null <<EOF
  12. # description:$desc
  13. # url:$url
  14. # packager:$packager
  15. # Depends on:
  16. name=$name
  17. version=$version
  18. release=1
  19. source=(https://github.com/$account/$name/archive/$version.tar.gz)
  20. build () {
  21. mv $DERLEME_KAYNAKDIZIN/$version.tar.gz $DERLEME_KAYNAKDIZIN/$name-$version.tar.gz
  22. cd $name-$version
  23. ./autogen.sh
  24. ./configure --prefix=/usr
  25. make
  26. make DESTDIR=$PKG install
  27. }
  28. EOF