my-pkgs/suspend-resume/PKGBUILD

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=('7e6615626eafc101302b9cb089ffb91f36a6b5c16ea5cc6e9b3738e5bf801b88ffe05e8c978a099f569dbd5315309092ae50b1006385489fe04fd4b0aff05ff6')
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/"
}