aboutsummaryrefslogblamecommitdiffstats
path: root/community/uptimed/APKBUILD
blob: 5e64a81550111d774273ab7746160a795687a553 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                   
                                                 
               

            

                                     
                            
                                          


                                          

                                                                                             
                                   

         
                      







                                       


           
                      
                                      
                                            
                                          
                                               
                                            
 
 
                                                                                                                                                                  
                                                                                                                                               
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=uptimed
pkgver=0.4.1
pkgrel=0
pkgdesc='System uptime record daemon'
arch="all"
options="!check"  # No tests
url="https://github.com/rpodgorny/uptimed"
license="GPL-2.0-only"
subpackages="$pkgname-doc $pkgname-openrc"
makedepends="autoconf automake libtool"
source="$pkgname-$pkgver.tar.gz::https://github.com/rpodgorny/uptimed/archive/v$pkgver.tar.gz
	uptimed.init"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	autoreconf -vif
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man
	make
}

package() {
	cd "$builddir"
	make install DESTDIR="$pkgdir"
	mv "$pkgdir"/etc/uptimed.conf-dist \
		"$pkgdir"/etc/uptimed.conf
	install -Dm755 "$srcdir"/uptimed.init \
		"$pkgdir"/etc/init.d/uptimed
}

sha512sums="5dfe79aebab8c8daca3a3ec88d54e312446fc7cf8b54ef1414cbfcb3fb25053ef31235de4b42cb14fc7352965b77ca2875c753b97b4d61178792a5484715e23a  uptimed-0.4.1.tar.gz
0884e9f5ace5a69b8eea4401c7f3b84f0a434f0ceb2b920919e83f318eb9e54182932de174cf1666ddddbab84c146781f3dd78571e80cc274963a72bf4f53a6b  uptimed.init"