Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

dnscrypt-proxy PKGBUILD fixed for usr/bin changes

By: Peaceseeker on Jun 3rd, 2013  |  syntax: None  |  size: 1.25 KB  |  hits: 82  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: peace4all <markspost at rocketmail dot com>
  2.  
  3. pkgname=dnscrypt-proxy
  4. pkgver=1.3.0
  5. pkgrel=3
  6. pkgdesc="A tool for securing communications between a client and a DNS resolver"
  7. arch=('i686' 'x86_64')
  8. url="http://dnscrypt.org/"
  9. license=('custom')
  10. source=(http://download.dnscrypt.org/$pkgname/$pkgname-$pkgver.tar.bz2
  11.         conf.d.file
  12.         dnscrypt-proxy.service)
  13. backup=(etc/conf.d/dnscrypt-proxy)
  14. conflicts=(dnscrypt-proxy-git)
  15.  
  16. build() {
  17.         cd $srcdir/$pkgname-$pkgver
  18.         CFLAGS="$CFLAGS -fPIC" ./configure --prefix=/usr --sbindir=/usr/bin
  19.         make -j2
  20. }
  21.  
  22. check() {
  23.         cd "$srcdir/$pkgname-$pkgver/src/libsodium"
  24.         make -j2 check
  25. }
  26.  
  27. package() {
  28.         cd $srcdir/$pkgname-$pkgver
  29.         make DESTDIR=$pkgdir install
  30.         mkdir -p $pkgdir/{usr/share/{licenses,doc}/$pkgname,etc/conf.d,usr/lib/systemd/system}
  31.         install -m 644 COPYING $pkgdir/usr/share/licenses/$pkgname
  32.         install -m 644 AUTHORS NEWS README README.markdown $pkgdir/usr/share/doc/$pkgname
  33.         install -m 644 $srcdir/conf.d.file $pkgdir/etc/conf.d/$pkgname
  34.         install -m 644 $srcdir/dnscrypt-proxy.service $pkgdir/usr/lib/systemd/system
  35.         rm -rf $pkgdir/usr/{lib/*.{l,}a,include}
  36. }
  37.  
  38. md5sums=('33cc94dd06d23f96b4bac3efd1b20c95'
  39.          '4d486b3c2a4d47d4f998ed75c5033f77'
  40.          '8ddf884ce05f706f913eab3c5b235f45')