rename $pkgname.install to .install

This commit is contained in:
Daniel Langbein 2021-04-29 14:24:28 +02:00
parent f9433e695b
commit 001bed5a80
13 changed files with 114 additions and 6 deletions

1
.gitignore vendored
View File

@ -6,5 +6,6 @@
/pkg/*/*-any.pkg.tar.zst /pkg/*/*-any.pkg.tar.zst
/pkg/*/*-package.log /pkg/*/*-package.log
/pkg/*/*-x86_64-build.log /pkg/*/*-x86_64-build.log
/pkg/de-p1st-gnupg/duraconf/
/archlive/ /archlive/

View File

@ -17,7 +17,7 @@ conflicts=()
replaces=() replaces=()
backup=() backup=()
options=() options=()
install="${pkgname}.install" install='.install'
changelog= changelog=
source=("git+${url}.git") source=("git+${url}.git")
noextract=() noextract=()

View File

@ -17,7 +17,7 @@ conflicts=()
replaces=() replaces=()
backup=() backup=()
options=() options=()
install="${pkgname}.install" install='.install'
changelog= changelog=
source=("git+${url}.git") source=("git+${url}.git")
noextract=() noextract=()

View File

@ -17,7 +17,7 @@ conflicts=()
replaces=() replaces=()
backup=() backup=()
options=() options=()
install="${pkgname}.install" install='.install'
changelog= changelog=
source=("git+${url}.git") source=("git+${url}.git")
noextract=() noextract=()

View File

@ -0,0 +1,37 @@
# This is a default template for a post-install scriptlet.
# Uncomment only required functions and remove any functions
# you don't need (and this header).
## arg 1: the new package version
#pre_install() {
# do something here
#}
## arg 1: the new package version
post_install() {
holo apply
systemctl preset-all
}
## arg 1: the new package version
## arg 2: the old package version
#pre_upgrade() {
# do something here
#}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
holo apply
systemctl preset-all
}
## arg 1: the old package version
#pre_remove() {
# do something here
#}
## arg 1: the old package version
post_remove() {
holo apply
}

View File

@ -0,0 +1,33 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=smartcard
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgrel=1
pkgdesc="Configuration to use smartcards"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
groups=()
depends=('ccid' 'opensc' 'holo' 'de-p1st-gnupg')
makedepends=('git')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install='.install'
changelog=
source=("git+${url}.git")
noextract=()
sha256sums=('SKIP')
package() {
cd "${_reponame}/pkg/${pkgname}"
# use HOLO
# HOLO, SYSTEMD hooks
install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/"$pkgname".preset
}

View File

@ -17,7 +17,7 @@ conflicts=()
replaces=() replaces=()
backup=() backup=()
options=() options=()
install="${pkgname}.install" install='.install'
changelog= changelog=
source=("git+${url}.git") source=("git+${url}.git")
noextract=() noextract=()

View File

@ -0,0 +1,37 @@
# This is a default template for a post-install scriptlet.
# Uncomment only required functions and remove any functions
# you don't need (and this header).
## arg 1: the new package version
#pre_install() {
# do something here
#}
## arg 1: the new package version
post_install() {
holo apply
systemctl preset-all
}
## arg 1: the new package version
## arg 2: the old package version
#pre_upgrade() {
# do something here
#}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
holo apply
systemctl preset-all
}
## arg 1: the old package version
#pre_remove() {
# do something here
#}
## arg 1: the old package version
post_remove() {
holo apply
}