added install script to enable systemd autostart
This commit is contained in:
parent
f765844154
commit
872c127908
10
.SRCINFO
10
.SRCINFO
|
@ -1,14 +1,18 @@
|
||||||
pkgbase = tromjaro-calamares-theme
|
pkgbase = tromjaro-calamares-theme
|
||||||
pkgdesc = Theme for calamares
|
pkgdesc = Theme for calamares
|
||||||
pkgver = 3.2.15
|
pkgver = 3.2.18
|
||||||
pkgrel = 1.3
|
pkgrel = 1
|
||||||
url = https://gitlab.com/tromsite/tromjaro/calamares-settings
|
url = https://gitlab.com/tromsite/tromjaro/calamares-settings
|
||||||
arch = any
|
arch = any
|
||||||
license = GPL3
|
license = GPL3
|
||||||
makedepends = git
|
makedepends = git
|
||||||
depends = calamares
|
depends = calamares
|
||||||
source = tromjaro-calamares-theme::git+https://gitlab.com/tromsite/tromjaro/calamares-settings.git#commit=e8f77a0a3b1ce942ebac18fc399516e8180a3ce0
|
source = tromjaro-calamares-theme::git+https://gitlab.com/tromsite/tromjaro/calamares-settings.git#commit=c0bcac94f05e559801d28d2bd24eef5cc2823ae9
|
||||||
|
source = calamares-install.hook
|
||||||
|
source = calamares-install.install
|
||||||
sha256sums = SKIP
|
sha256sums = SKIP
|
||||||
|
sha256sums = c45e567fe629bf1b2c670d08ccc44374f0ae3646dda00da4dcc0077aa7f2f6e8
|
||||||
|
sha256sums = 792f8773a590515dcffa08f1c2eb906efd99aac630bbd3f5b70a358f3a7f8e7c
|
||||||
|
|
||||||
pkgname = tromjaro-calamares-theme
|
pkgname = tromjaro-calamares-theme
|
||||||
|
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -4,3 +4,5 @@
|
||||||
!.gitignore
|
!.gitignore
|
||||||
!.SRCINFO
|
!.SRCINFO
|
||||||
!PKGBUILD
|
!PKGBUILD
|
||||||
|
!calamares-install.hook
|
||||||
|
!calamares-install.install
|
19
PKGBUILD
19
PKGBUILD
|
@ -1,20 +1,29 @@
|
||||||
# Maintainer: davedatum <trom@davedatum.com>
|
# Maintainer: davedatum <trom@davedatum.com>
|
||||||
|
|
||||||
pkgname=tromjaro-calamares-theme
|
pkgname=tromjaro-calamares-theme
|
||||||
pkgver=3.2.15
|
pkgver=3.2.18
|
||||||
pkgrel=1.5
|
pkgrel=1
|
||||||
pkgdesc="Theme for calamares"
|
pkgdesc="Theme for calamares"
|
||||||
arch=("any")
|
arch=("any")
|
||||||
url="https://gitlab.com/tromsite/tromjaro/calamares-settings"
|
url="https://gitlab.com/tromsite/tromjaro/calamares-settings"
|
||||||
license=("GPL3")
|
license=("GPL3")
|
||||||
depends=("calamares")
|
depends=("calamares")
|
||||||
makedepends=("git")
|
makedepends=("git")
|
||||||
source=("${pkgname}::git+${url}.git#commit=c0bcac94f05e559801d28d2bd24eef5cc2823ae9")
|
source=("${pkgname}::git+${url}.git#commit=c0bcac94f05e559801d28d2bd24eef5cc2823ae9"
|
||||||
sha256sums=('SKIP')
|
"calamares-install.hook"
|
||||||
|
"calamares-install.install")
|
||||||
|
sha256sums=('SKIP'
|
||||||
|
'c45e567fe629bf1b2c670d08ccc44374f0ae3646dda00da4dcc0077aa7f2f6e8'
|
||||||
|
'792f8773a590515dcffa08f1c2eb906efd99aac630bbd3f5b70a358f3a7f8e7c')
|
||||||
|
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
|
||||||
install -d "${pkgdir}/etc"
|
install -d "${pkgdir}/etc"
|
||||||
cp -r "${srcdir}/${pkgname}/calamares" "${pkgdir}/etc/"
|
cp -r "${srcdir}/${pkgname}/calamares" "${pkgdir}/etc/"
|
||||||
|
install -Dm644 "${srcdir}/calamares-install.hook" "${pkgdir}/usr/share/libalpm/hooks/calamares-install.hook"
|
||||||
|
install -d "${pkdir}/etc/systemd/system"
|
||||||
|
cp -r "${srcdir}/${pkgname}/systemd/*" "${pkgdir}/etc/systemd/system/"
|
||||||
|
|
||||||
|
install -Dm644 "${srcdir}/${pkgbase}/calamares-launch-script.sh" \
|
||||||
|
"${pkgdir}/usr/bin/calamares-launch-script"
|
||||||
}
|
}
|
||||||
|
|
10
calamares-install.hook
Normal file
10
calamares-install.hook
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[Trigger]
|
||||||
|
Operation = Install
|
||||||
|
Operation = Upgrade
|
||||||
|
Type = Package
|
||||||
|
Target = tromjaro-calamares-theme
|
||||||
|
|
||||||
|
[Action]
|
||||||
|
Description = enable systemd timer + service for calamares_polkit
|
||||||
|
When = PostTransation
|
||||||
|
Exec = /bin/bash -c '/usr/bin/calamares-launch-script'
|
7
calamares-install.install
Normal file
7
calamares-install.install
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
post_install() {
|
||||||
|
chmod +x /usr/bin/calamares-launch-script
|
||||||
|
}
|
||||||
|
|
||||||
|
post_upgrade() {
|
||||||
|
post_install
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user