summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 316a4c032a2a07ee0d5e718df841c690e17848a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Sara <sara at archlinux dot us>
# Contributor: Jonas Heinrich <onny@project-insanity.org>
# Maintainer: aksr <aksr at t-com dot me>
pkgname=wakeup-git
pkgver=r54.49db7f6
pkgrel=1
epoch=1
pkgdesc='A timer that will wake your system from suspend to RAM.'
arch=('i686' 'x86_64')
url="https://github.com/fogobogo/wakeup"
license=('GPL-2.0')
depends=('glibc' 'pm-utils')
makedepends=('git')
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
source=("$pkgname::git+$url")
md5sums=('SKIP')

pkgver(){
	cd "${srcdir}/$pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

}

build(){
	cd "${srcdir}/${pkgname}"
	make
}

package(){
	cd "${srcdir}/${pkgname}"
	make PREFIX=/usr DESTDIR="${pkgdir}" install
}