updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ndyndns / PKGBUILD
blob0b6e2bee6d2a4ec4a774cc620707721dbd93b37e
1 # Maintainer: Jens Adam (byte/jra) <j_adam@web.de>
3 pkgname=ndyndns
4 pkgver=2.1
5 pkgrel=1
6 pkgdesc="Update client for the dynamic DNS services from DynDNS and Namecheap"
7 url="http://code.google.com/p/ndyndns/"
8 license=('GPL3')
9 arch=('i686' 'x86_64')
10 depends=('curl')
11 install=${pkgname}.install
12 backup=('etc/ndyndns.conf')
13 source=("http://${pkgname}.googlecode.com/files/${pkgname}-${pkgver}.tar.gz"
14         'ldflags-asneeded.patch'
15         'ndyndns.conf'
16         'ndyndns')
17 md5sums=('0cdb4dcba5f8c1664f53884b3c2179e9'
18          '87839c15c14838ca54e7894485cca698'
19          'f0c69eb41db16a228ebf62c1561c89d6'
20          '525e890ba29c929170c45fbe07d7628b')
22 build() {
23   cd "${srcdir}"/${pkgname}-${pkgver}
24   patch < ../ldflags-asneeded.patch
25   ./configure --prefix=/usr
26   make
29 package() {
30   cd "${srcdir}"/${pkgname}-${pkgver}
31   install -d "${pkgdir}"/{etc/rc.d,usr/{sbin,share/man/man{1,5}}}
32   install -m600 ../ndyndns.conf "${pkgdir}"/etc
33   install ../ndyndns "${pkgdir}"/etc/rc.d
34   install ndyndns "${pkgdir}"/usr/sbin
35   gunzip ndyndns.{1,conf.5}.gz
36   install -m644 ndyndns.1 "${pkgdir}"/usr/share/man/man1
37   install -m644 ndyndns.conf.5 "${pkgdir}"/usr/share/man/man5
38   install -d "${pkgdir}"/{usr/share/doc,var/lib}/ndyndns
39   install -m644 CHANGES DESIGN README "${pkgdir}"/usr/share/doc/ndyndns