summaryrefslogtreecommitdiff
path: root/extra/whois/PKGBUILD
blob: 3453d79439a4a4f1d5d95500282ece82e6f96459 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $Id: PKGBUILD 146524 2012-01-12 12:09:35Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=whois
pkgver=5.0.14
pkgrel=1
pkgdesc="The whois client by Marco d'Itri"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.linux.it/~md/software/"
license=('GPL')
depends=('libidn')
makedepends=('perl')
source=("http://ftp.debian.org/debian/pool/main/w/whois/${pkgname}_${pkgver}.tar.gz")
md5sums=('82c4c93ea589ce1dad1cb02ef04c08b9')

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

  make prefix=/usr CFLAGS="$CFLAGS" HAVE_LIBIDN=1
}

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

  make prefix=/usr BASEDIR="${pkgdir}" install-whois
}