Browse Source

[trunk] -> [extra] 'live-services-0.13-1' add

master
nous 4 months ago
parent
commit
377a436a2e
Signed by: nous
GPG Key ID: 6023C3BEEAB08C4A
  1. 6
      live-services/trunk/PKGBUILD
  2. 44
      live-services/trunk/live-66.install
  3. 20
      live-services/trunk/live-s6.install
  4. 6
      live-services/x86_64/extra/PKGBUILD
  5. 44
      live-services/x86_64/extra/live-66.install
  6. 20
      live-services/x86_64/extra/live-s6.install

6
live-services/trunk/PKGBUILD

@ -9,7 +9,7 @@ pkgname=('artix-live-base'
'artix-live-s6'
'artix-live-suite66'
'artix-live-dinit')
pkgver=0.12.3
pkgver=0.13
pkgrel=1
pkgdesc='Artix live session'
arch=('any')
@ -20,7 +20,7 @@ makedepends=('git')
#_commit=91b23a52650c592c2f2596e9a2fb350d8a5c4aa6 # 0.11.1
#source=("git+$url.git#commit=$_commit")
source=("${pkgbase}-${pkgver}.tar.gz::$url/archive/${pkgver}.tar.gz")
sha256sums=('c9001eed3ea7cf15ad171318d1c278ee33fa7ddaa23cc5324d5eac167039cadc')
sha256sums=('90eca6ba75d38f402d06cf176691adc2414e2f13a2c804d362e6eb77941104bc')
build() {
cd ${pkgbase}
@ -61,7 +61,6 @@ package_artix-live-runit() {
package_artix-live-s6() {
pkgdesc='Artix live s6 init scripts'
depends=('s6-base' 'artix-live-base')
install=live-s6.install
cd ${pkgbase}
make DESTDIR=${pkgdir} install_s6
@ -70,7 +69,6 @@ package_artix-live-s6() {
package_artix-live-suite66() {
pkgdesc='Artix live suite66 init scripts'
depends=('suite66-base' 'artix-live-base')
install=live-66.install
cd ${pkgbase}
make DESTDIR=${pkgdir} install_66

44
live-services/trunk/live-66.install

@ -1,44 +0,0 @@
# This will inject artix-live and pacman-init as dependencies for DMs
# and create default boot tree and needed boot services
post_install() {
if [ -f /usr/bin/gdm ]; then
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( '\
'\1artix-live pacman-init )#' /etc/66/service/gdm
66-disable -t default logind gdm
66-enable -t default logind gdm
elif [ -f /usr/bin/lightdm ]; then
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( '\
'\1artix-live pacman-init )#' /etc/66/service/lightdm
66-disable -t default logind lightdm
66-enable -t default logind lightdm
elif [ -f /usr/bin/sddm ]; then
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( '\
'\1artix-live pacman-init )#' /etc/66/service/sddm
66-disable -t default logind sddm
66-enable -t default logind sddm
else
66-enable -t default artix-live pacman-init
fi
66-tree -n boot
66-enable -t boot -F boot@system
}
post_remove() {
if [ -f /usr/bin/gdm ]; then
sed -i -E 's# artix-live pacman-init##' /etc/66/service/gdm
66-disable -t default logind gdm
66-enable -t default logind gdm
elif [ -f /usr/bin/lightdm ]; then
sed -i -E 's# artix-live pacman-init##' /etc/66/service/lightdm
66-disable -t default logind lightdm
66-enable -t default logind lightdm
elif [ -f /usr/bin/sddm ]; then
sed -i -E 's# artix-live pacman-init##' /etc/66/service/sddm
66-disable -t default logind sddm
66-enable -t default logind sddm
else
66-disable -t default artix-live pacman-init
fi
}

20
live-services/trunk/live-s6.install

@ -1,20 +0,0 @@
post_install() {
gdm=$(pacman -Qi gdm-s6 2> /dev/null)
if [ "$?" = "0" ]; then
touch /etc/s6/sv/gdm/dependencies.d/artix-live
fi
lightdm=$(pacman -Qi lightdm-s6 2> /dev/null)
if [ "$?" = "0" ]; then
touch /etc/s6/sv/lightdm-srv/dependencies.d/artix-live
fi
sddm=$(pacman -Qi sddm-s6 2> /dev/null)
if [ "$?" = "0" ]; then
touch /etc/s6/sv/sddm/dependencies.d/artix-live
fi
sh /usr/share/libalpm/scripts/s6-rc-db-update-hook
s6-rc-bundle-update -c /etc/s6/rc/compiled add default pacman-init artix-live
}
post_remove() {
rm -f /etc/s6/sv/{gdm,lightdm-srv,sddm}/dependencies.d/artix-live
}

6
live-services/x86_64/extra/PKGBUILD

@ -9,7 +9,7 @@ pkgname=('artix-live-base'
'artix-live-s6'
'artix-live-suite66'
'artix-live-dinit')
pkgver=0.12.3
pkgver=0.13
pkgrel=1
pkgdesc='Artix live session'
arch=('any')
@ -20,7 +20,7 @@ makedepends=('git')
#_commit=91b23a52650c592c2f2596e9a2fb350d8a5c4aa6 # 0.11.1
#source=("git+$url.git#commit=$_commit")
source=("${pkgbase}-${pkgver}.tar.gz::$url/archive/${pkgver}.tar.gz")
sha256sums=('c9001eed3ea7cf15ad171318d1c278ee33fa7ddaa23cc5324d5eac167039cadc')
sha256sums=('90eca6ba75d38f402d06cf176691adc2414e2f13a2c804d362e6eb77941104bc')
build() {
cd ${pkgbase}
@ -61,7 +61,6 @@ package_artix-live-runit() {
package_artix-live-s6() {
pkgdesc='Artix live s6 init scripts'
depends=('s6-base' 'artix-live-base')
install=live-s6.install
cd ${pkgbase}
make DESTDIR=${pkgdir} install_s6
@ -70,7 +69,6 @@ package_artix-live-s6() {
package_artix-live-suite66() {
pkgdesc='Artix live suite66 init scripts'
depends=('suite66-base' 'artix-live-base')
install=live-66.install
cd ${pkgbase}
make DESTDIR=${pkgdir} install_66

44
live-services/x86_64/extra/live-66.install

@ -1,44 +0,0 @@
# This will inject artix-live and pacman-init as dependencies for DMs
# and create default boot tree and needed boot services
post_install() {
if [ -f /usr/bin/gdm ]; then
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( '\
'\1artix-live pacman-init )#' /etc/66/service/gdm
66-disable -t default logind gdm
66-enable -t default logind gdm
elif [ -f /usr/bin/lightdm ]; then
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( '\
'\1artix-live pacman-init )#' /etc/66/service/lightdm
66-disable -t default logind lightdm
66-enable -t default logind lightdm
elif [ -f /usr/bin/sddm ]; then
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( '\
'\1artix-live pacman-init )#' /etc/66/service/sddm
66-disable -t default logind sddm
66-enable -t default logind sddm
else
66-enable -t default artix-live pacman-init
fi
66-tree -n boot
66-enable -t boot -F boot@system
}
post_remove() {
if [ -f /usr/bin/gdm ]; then
sed -i -E 's# artix-live pacman-init##' /etc/66/service/gdm
66-disable -t default logind gdm
66-enable -t default logind gdm
elif [ -f /usr/bin/lightdm ]; then
sed -i -E 's# artix-live pacman-init##' /etc/66/service/lightdm
66-disable -t default logind lightdm
66-enable -t default logind lightdm
elif [ -f /usr/bin/sddm ]; then
sed -i -E 's# artix-live pacman-init##' /etc/66/service/sddm
66-disable -t default logind sddm
66-enable -t default logind sddm
else
66-disable -t default artix-live pacman-init
fi
}

20
live-services/x86_64/extra/live-s6.install

@ -1,20 +0,0 @@
post_install() {
gdm=$(pacman -Qi gdm-s6 2> /dev/null)
if [ "$?" = "0" ]; then
touch /etc/s6/sv/gdm/dependencies.d/artix-live
fi
lightdm=$(pacman -Qi lightdm-s6 2> /dev/null)
if [ "$?" = "0" ]; then
touch /etc/s6/sv/lightdm-srv/dependencies.d/artix-live
fi
sddm=$(pacman -Qi sddm-s6 2> /dev/null)
if [ "$?" = "0" ]; then
touch /etc/s6/sv/sddm/dependencies.d/artix-live
fi
sh /usr/share/libalpm/scripts/s6-rc-db-update-hook
s6-rc-bundle-update -c /etc/s6/rc/compiled add default pacman-init artix-live
}
post_remove() {
rm -f /etc/s6/sv/{gdm,lightdm-srv,sddm}/dependencies.d/artix-live
}
Loading…
Cancel
Save