# Maintainer: Christian Hesse <mail@eworm.de>

pkgname=pacredir
pkgver=0.4.4
pkgrel=1
pkgdesc='redirect pacman requests, assisted by avahi service discovery'
arch=('x86_64')
url='https://github.com/eworm-de/pacredir'
depends=('systemd-libs' 'avahi' 'curl' 'iniparser' 'darkhttpd' 'libmicrohttpd')
makedepends=('systemd' 'markdown')
conflicts=('pacserve')
license=('GPL')
install=pacredir.install
backup=('etc/pacredir.conf' 'etc/pacman.d/pacredir')
validpgpkeys=('BD84DE71F493DF6814B0167254EDC91609BC9183') # Christian Hesse <mail@eworm.de>
source=("https://www.eworm.de/download/${pkgname}/${pkgname}-${pkgver}.tar.xz"{,.asc})
sha256sums=('fdc2f7ce727a75ac20a7289afdecee0ba32b6887c5152528679d49a32b272b86'
            'SKIP')

build() {
	cd ${pkgname}-${pkgver}/

	make
}

package() {
	cd ${pkgname}-${pkgver}/

	make DESTDIR="${pkgdir}" install
}

