archrelease: copy trunk to community-any
[arch-community.git] / uptimed / trunk / PKGBUILD
blob8f4f0990e53f072dd22f285d91006a2d77b605d2
1 # Maintainer:  Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Maintainer:  BartÅ‚omiej Piotrowski <nospam@bpiotrowski.pl>
3 # Contributor: Tom Killian <tomk@runbox.com>
4 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
6 pkgname=uptimed
7 pkgver=0.4.6
8 pkgrel=3
9 pkgdesc="A system uptime record daemon"
10 arch=(x86_64)
11 #url="http://podgorny.cz/uptimed/"
12 url="https://github.com/rpodgorny/uptimed"
13 license=('GPL')
14 depends=()
15 makedepends=('systemd')
16 backup=(etc/uptimed.conf)
17 install=$pkgname.install
18 source=("$pkgname-$pkgver.tar.gz::https://github.com/rpodgorny/uptimed/archive/v$pkgver.tar.gz")
19 sha512sums=('035caba32182a807312b587b3cb3b6322027b7c8f3e69a3f0b52ea4f44ecfc40505fe58b6a1b56a87a967f1f8b1fbc075414a04b60717577e32972feadb9bc2d')
21 build() {
22   cd "$srcdir"/$pkgname-$pkgver
23   ./autogen.sh
24   ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin
25   make
28 package() {
29   cd "$srcdir"/$pkgname-$pkgver
30   make install DESTDIR="$pkgdir"
31   mv "$pkgdir"/etc/uptimed.conf-dist "$pkgdir"/etc/uptimed.conf