# $Id: PKGBUILD 111112 2014-05-14 03:44:59Z fyan $ # Maintainer: Felix Yan # Contributor: Techlive Zheng # Contributor: peace4all pkgname=dnscrypt-proxy pkgver=1.4.0 pkgrel=1 pkgdesc="A tool for securing communications between a client and a DNS resolver" arch=('i686' 'x86_64') url="http://dnscrypt.org/" license=('custom:ISC') depends=('libsodium') makedepends=('clang') source=(http://download.dnscrypt.org/$pkgname/$pkgname-$pkgver.tar.bz2 conf.d.file dnscrypt-proxy.service) backup=(etc/conf.d/dnscrypt-proxy) build() { cd $pkgname-$pkgver export CC=clang CFLAGS="${CFLAGS/-fstack-protector-strong/} -fPIC" ./configure --prefix=/usr --sbindir=/usr/bin make -j2 } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install mkdir -p "$pkgdir"/{usr/share/{licenses,doc}/$pkgname,etc/conf.d,usr/lib/systemd/system} install -m 644 COPYING "$pkgdir"/usr/share/licenses/$pkgname install -m 644 AUTHORS NEWS README README.markdown "$pkgdir"/usr/share/doc/$pkgname install -m 644 "$srcdir"/conf.d.file "$pkgdir"/etc/conf.d/$pkgname install -m 644 "$srcdir"/dnscrypt-proxy.service "$pkgdir"/usr/lib/systemd/system } sha512sums=('cf21231d60a12dc413d7ce7d577b3698a2a347caca00c65f18b0fbcb715d872b6839f20863fb6bd69f3dee3b2836d6db8d446de5c0ec4925e3b4c75d5d5c4d47' '26e5ce3198c25ff25542dc399f2bb5467ac349dbc11c2ebd6d3ba978ffaef09607088d9401e62ba33c6f50b8b29a59f56fe97d964f55e63ee9d8ca23862c3e00' '9a1072f83e83e55dcdd7b80d1943f60963fa240da8a50d7491cc219797c6b85b8d79d087c0f7bb9766a4d467dec58eaae2bef31b759652545ace65a6a8afb608')