]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Fix aur bootstrap script
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Tue, 5 Jun 2018 18:34:18 +0000 (20:34 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Tue, 5 Jun 2018 18:34:18 +0000 (20:34 +0200)
modules/aur/manifests/aura.pp

index 3074885a9f42d2c0bc36be6e137ea5992c38268a..47b02f85fffc11f730745ef98aa480f6ba95a9ed 100644 (file)
@@ -15,12 +15,12 @@ class aur::aura(
 
   # aur.sh seems down
   #$aur_url = "https://aur.sh"
-  $aur_url = "https://raw.githubusercontent.com/stuartpb/aur.sh/dc2f3fcaa90a4d3d1e8d746160559b5d3123a425/aur.sh"
+  #$aur_url = "https://raw.githubusercontent.com/stuartpb/aur.sh/dc2f3fcaa90a4d3d1e8d746160559b5d3123a425/aur.sh"
 
   exec { 'aur::aura':
     cwd       => "/tmp",
     path      => "/usr/bin",
-    command   => "curl -o /tmp/aur.sh $aur_url && chmod +x /tmp/aur.sh && /tmp/aur.sh aura-bin && mv /tmp/aura-bin/aura-bin-*-x86_64.pkg.tar.xz /tmp/aura-bin-x86_64.pkg.tar.xz && rm /tmp/aur.sh && rm -rf /tmp/aura-bin",
+    command   => "cd /tmp && curl https://aur.archlinux.org/cgit/aur.git/snapshot/aura-bin.tar.gz | tar xz && cd aura-bin && makepkg aura-bin && mv /tmp/aura-bin/aura-bin-*-x86_64.pkg.tar.xz /tmp/aura-bin-x86_64.pkg.tar.xz && rm /tmp/aur.sh && rm -rf /tmp/aura-bin",
     user      => "aur-builder",
     unless    => '/usr/bin/pacman -Qo aura',
     require   => Package['base-devel'],