archlinux: Setup default package repository

This commit is contained in:
Olivier MEDOC 2016-07-12 11:20:12 +02:00
parent b6a6d4e4e0
commit d449d75162
3 changed files with 14 additions and 2 deletions

View File

@ -6,7 +6,7 @@
# Maintainer: Olivier Medoc <o_medoc@yahoo.fr>
pkgname=qubes-vm-core
pkgver=`cat version`
pkgrel=8
pkgrel=9
epoch=
pkgdesc="The Qubes core files for installation inside a Qubes VM."
arch=("x86_64")
@ -27,14 +27,17 @@ changelog=
source=( PKGBUILD.qubes-ensure-lib-modules.service PKGBUILD.qubes-update-desktop-icons.hook
PKGBUILD-qubes-noupgrade.conf
PKGBUILD-qubes-repo-3.1.conf
PKGBUILD-qubes-repo-3.2.conf
)
noextract=()
md5sums=( '88f4b3d5b156888a9d38f5bc28702ab8' 'bbfb946d6d2787e5abf8e2236502a3d4'
'c1c1b86eed48cc0f943f21b9a1df8b8e'
'36bf82df048e81250e7ba80b3224bddc'
'd5898def7bad7fd92ea60f0bf48174e3'
)
build() {
for source in autostart-dropins qubes-rpc qrexec misc Makefile vm-init.d vm-systemd network ; do
@ -90,6 +93,11 @@ package() {
mkdir -p ${pkgdir}/etc/pacman.d
install -m 644 $srcdir/PKGBUILD-qubes-noupgrade.conf ${pkgdir}/etc/pacman.d/qubes-noupgrade.conf
# Install pacman repository
release=`echo $pkgver | cut -d '.' -f 1,2`
echo "Installing repository for release ${release}"
install -m 644 $srcdir/PKGBUILD-qubes-repo-${release}.conf ${pkgdir}/etc/pacman.d/99-qubes-repository-${release}.conf
# Archlinux specific: enable autologin on tty1
mkdir -p $pkgdir/etc/systemd/system/getty@tty1.service.d/
cat <<EOF > $pkgdir/etc/systemd/system/getty@tty1.service.d/autologin.conf

View File

@ -0,0 +1,2 @@
[qubes-r3.1]
Server = http://olivier.medoc.free.fr/archlinux/$repo

View File

@ -0,0 +1,2 @@
[qubes-r3.2]
Server = http://olivier.medoc.free.fr/archlinux/$repo