summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2d4dff225c52cbd7530b68334755d82942870717 (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
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Fernando Ortiz <nandub+arch [at] nandub.info>

_pkgname=adns
pkgname=adns-git
epoch=1
pkgver=adns.r1.5.1.0.g571b072
pkgrel=2
pkgdesc="An asyncronous replacement resolver library"
arch=('i686' 'x86_64')
url="https://www.chiark.greenend.org.uk/~ian/adns"
license=('GPL')
depends=('glibc')
makedepends=('git')
source=("${_pkgname}::git://git.chiark.greenend.org.uk/~ianmdlvl/${_pkgname}.git")
sha1sums=('SKIP')

pkgver() {
  cd ${_pkgname}
  git describe --long --tags | sed 's/^v//; s/-/.r/; s/-/./g'
}

prepare() {
  cd ${_pkgname}
  ./configure --prefix=/usr
}

build() {
  cd ${_pkgname}
  make
}

package() {
  cd ${_pkgname}
  mkdir -p "$pkgdir"/usr/{lib,include,bin}
  make prefix="$pkgdir"/usr install
}

# vim: set ts=2 sw=2 et: