Skip to content

Instantly share code, notes, and snippets.

@sistematico
Last active June 8, 2016 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sistematico/196107621c492f9db5b774cf0b64255e to your computer and use it in GitHub Desktop.
Save sistematico/196107621c492f9db5b774cf0b64255e to your computer and use it in GitHub Desktop.
Um helper para criar e enviar um novo pacote para o AUR(http://aur.archlinux.org)
#!/bin/sh
#
# aursend.sh - Um pequeno helper para criar e enviar
# um novo pacote para o AUR(http://aur.archlinux.org)
# Usando o método com Git
#
# Criado por Lucas Saliés Brum
# Com base em http://bit.ly/1U2bTRE
# Em 05-06-2016 07:30:25
#
# Uso: wget https://git.io/vomBy -O aursend.sh
# chmod +x aursend.sh
# ./aursend.sh nome_do_pacote
pacote=$1
mv $pacote ${pacote}.old
git clone git+ssh://aur@aur.archlinux.org/${pacote}.git
cp ${pacote}.old/PKGBUILD ${pacote}/
cd $pacote
makepkg --printsrcinfo > .SRCINFO
git add PKGBUILD .SRCINFO
git commit -m "Commit inicial"
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment