my-pkgs/suspend-resume/PKGBUILD
2023-06-26 16:08:54 +02:00

46 lines
1.1 KiB
Bash

# 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=()
sha512sums=('04cd25a3eb701ae23ad7a66da900db8ea8a3f49694c05b59f9d7418e3713d66b2df6ce221f9a39c592d3df230d0c41db864dc4a09c5d6e8a63cd3483d1557d86')
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/"
install -m644 "$pkgname/etc/systemd/system/suspend-resume.service" "$pkgdir/etc/systemd/system/"
}