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
|
||||
pkgdesc = Theme for calamares
|
||||
pkgver = 3.2.15
|
||||
pkgrel = 1.3
|
||||
pkgver = 3.2.18
|
||||
pkgrel = 1
|
||||
url = https://gitlab.com/tromsite/tromjaro/calamares-settings
|
||||
arch = any
|
||||
license = GPL3
|
||||
makedepends = git
|
||||
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 = c45e567fe629bf1b2c670d08ccc44374f0ae3646dda00da4dcc0077aa7f2f6e8
|
||||
sha256sums = 792f8773a590515dcffa08f1c2eb906efd99aac630bbd3f5b70a358f3a7f8e7c
|
||||
|
||||
pkgname = tromjaro-calamares-theme
|
||||
|
||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -4,3 +4,5 @@
|
|||
!.gitignore
|
||||
!.SRCINFO
|
||||
!PKGBUILD
|
||||
!calamares-install.hook
|
||||
!calamares-install.install
|
19
PKGBUILD
19
PKGBUILD
|
@ -1,20 +1,29 @@
|
|||
# Maintainer: davedatum <trom@davedatum.com>
|
||||
|
||||
pkgname=tromjaro-calamares-theme
|
||||
pkgver=3.2.15
|
||||
pkgrel=1.5
|
||||
pkgver=3.2.18
|
||||
pkgrel=1
|
||||
pkgdesc="Theme for calamares"
|
||||
arch=("any")
|
||||
url="https://gitlab.com/tromsite/tromjaro/calamares-settings"
|
||||
license=("GPL3")
|
||||
depends=("calamares")
|
||||
makedepends=("git")
|
||||
source=("${pkgname}::git+${url}.git#commit=c0bcac94f05e559801d28d2bd24eef5cc2823ae9")
|
||||
sha256sums=('SKIP')
|
||||
source=("${pkgname}::git+${url}.git#commit=c0bcac94f05e559801d28d2bd24eef5cc2823ae9"
|
||||
"calamares-install.hook"
|
||||
"calamares-install.install")
|
||||
sha256sums=('SKIP'
|
||||
'c45e567fe629bf1b2c670d08ccc44374f0ae3646dda00da4dcc0077aa7f2f6e8'
|
||||
'792f8773a590515dcffa08f1c2eb906efd99aac630bbd3f5b70a358f3a7f8e7c')
|
||||
|
||||
|
||||
package() {
|
||||
|
||||
install -d "${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