blob: a10873fb6936b44ba7a580ad997792262c863fe5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#! /usr/bin/perl -w
################################################################################
# Replacement updater script for AUR package
################################################################################
use strict;
use Getopt::Long;
my $installer = "";
GetOptions("installer=s" => \$installer);
chdir("/tmp");
system("wget https://aur.archlinux.org/cgit/aur.git/snapshot/pixum-fotowelt.tar.gz -O pixum-fotowelt.tar.gz");
system("tar -xf pixum-fotowelt.tar.gz");
system("mv pixum-fotowelt pixum-software");
chdir("pixum-software");
system("mv '$installer' ./");
$installer =~ s!.*/!!;
system("_UPDATING=1 _SETUP_FILE=$installer _RENAME='APPLICATION NAME' makepkg --install --noconfirm --clean");
print "\nHit <ENTER> to close this window.\n";
my $input = <STDIN>;
|