my-pkgs/suspend-resume/PKGBUILD

47 lines
1.2 KiB
Bash
Raw Permalink Normal View History

2023-06-26 14:08:54 +00:00
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Fabrice Mouhartem <chouhartem@epheme.re>
pkgname=suspend-resume
pkgver=0.1.0
pkgrel=1
epoch=
pkgdesc="Suspend then resume systemd service"
arch=(x86_64)
url=""
license=('GPL')
groups=()
depends=()
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("suspend-resume.tar.gz")
noextract=()
2023-06-27 08:32:18 +00:00
sha512sums=('9cdb5c97125749549624fffd12796c65d41aea374b91d2ef740da3c05f6349883418d150844d23cc6afdba2a59166bdd62bd4b444f933d89bb5b13eb844a66c9')
2023-06-26 14:08:54 +00:00
validpgpkeys=()
prepare() {
true
}
build() {
true
}
package() {
install -d "$pkgdir/opt"
install -d "$pkgdir/etc/systemd/system/"
install -m755 "$pkgname/opt/suspend-resume.sh" "$pkgdir/opt/"
2023-06-27 08:32:18 +00:00
install -m644 "$pkgname/etc/systemd/system/suspend-resume.timer" "$pkgdir/etc/systemd/system/"
2023-06-26 14:08:54 +00:00
install -m644 "$pkgname/etc/systemd/system/suspend-resume.service" "$pkgdir/etc/systemd/system/"
}