my-pkgs/suspend-resume/PKGBUILD

47 lines
1.2 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=('9cdb5c97125749549624fffd12796c65d41aea374b91d2ef740da3c05f6349883418d150844d23cc6afdba2a59166bdd62bd4b444f933d89bb5b13eb844a66c9')
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.timer" "$pkgdir/etc/systemd/system/"
install -m644 "$pkgname/etc/systemd/system/suspend-resume.service" "$pkgdir/etc/systemd/system/"
}