From 1d89ad1c02fd26642106783e2ebf9fa6858d5157 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 13 Dec 2015 15:07:54 +0100 Subject: added automatic archlinux installation (unsorted) --- unsorted/archauto/copy_local_packages.sh | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 unsorted/archauto/copy_local_packages.sh (limited to 'unsorted/archauto/copy_local_packages.sh') diff --git a/unsorted/archauto/copy_local_packages.sh b/unsorted/archauto/copy_local_packages.sh new file mode 100755 index 0000000..99609db --- /dev/null +++ b/unsorted/archauto/copy_local_packages.sh @@ -0,0 +1,35 @@ +#!/bin/sh + +rm -rf core/os/x86_64/ +mkdir -p core/os/x86_64/ + +for p in `cat archiso/arch/pkglist.x86_64.txt`; do + case $p in + core/*) + pkgname=`echo $p | cut -f 2 -d /` + if test -f /var/cache/pacman/pkg/$pkgname*x86_64.pkg.tar.xz; then + cp /var/cache/pacman/pkg/$pkgname*x86_64.pkg.tar.xz core/os/x86_64/. + fi + if test -f /var/cache/pacman/pkg/$pkgname*any.pkg.tar.xz; then + cp /var/cache/pacman/pkg/$pkgname*any.pkg.tar.xz core/os/x86_64/. + fi + ;; + esac +done + +ADDITIONAL_PKGS="libunistring-0.9.3-6 ntp-4.2.7.p441-1 joe-3.7-4 git-1.9.2-1 perl-error-0.17022-1 libxml2-2.9.1-5" +for pkgname in $ADDITIONAL_PKGS; do + if test -f /var/cache/pacman/pkg/$pkgname*x86_64.pkg.tar.xz; then + cp /var/cache/pacman/pkg/$pkgname*x86_64.pkg.tar.xz core/os/x86_64/. + fi + if test -f /var/cache/pacman/pkg/$pkgname*any.pkg.tar.xz; then + cp /var/cache/pacman/pkg/$pkgname*any.pkg.tar.xz core/os/x86_64/. + fi +done + +repo-add -n core/os/x86_64/core.db.tar.gz core/os/x86_64/* +ln -fs core.db.tar.gz core/os/x86_64/core.db +tar zcvfT extra/os/x86_64/extra.db.tar.gz /dev/null +ln -fs extra.db.tar.gz extra/os/x86_64/extra.db +tar zcvfT community/os/x86_64/community.db.tar.gz /dev/null +ln -fs community.db.tar.gz community/os/x86_64/community.db -- cgit v1.2.3-54-g00ecf