summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4522c6b4f4375133b0277725577699e818581574 (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
39
40
41
42
43
44
45
# Based on nss-mdns pkg by
# Maintainer: Tom Gundersen <teg@jklm.no>
# Contributor: Travis Willard <travis@archlinux.org>
# adds an automatic search name.local when name containss
# no . thus allowing domainless searches

pkgname=nss-mdns-domainless
pkgver=0.14.1
pkgrel=2
pkgdesc="glibc plugin providing host name resolution via mDNS (domainless allowed for .local)"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="http://0pointer.de/lennart/projects/nss-mdns/"
license=('LGPL')
depends=('glibc')
conflicts=('nss-mdns')
provides=("nss-dns=${pkgver}-${pkgrel}")
install=nss-mdns.install
source=("https://github.com/lathiat/nss-mdns/releases/download/v$pkgver/nss-mdns-$pkgver.tar.gz"
		"search-local.patch"
		)
sha256sums=(
		'a2094101b735cade45048764ea594bdae2bfa9399837f3c852a5b264416e9c8c'
		'763fdbd346f6b7f54d5b680add7f9970c7cdae79c5f983aa9f4eafc305eef5d1'
		)
prepare(){
	local d=${srcdir}/${pkgname}-${pkgver}
	[ ! -h "$d" ] && ln -s ${pkgname%-domainless}-${pkgver} "$d"
	[ ! -d "$d" ] && echo "!!!!! cannot locate dir '$d'" && exit 666
	cd "$d/src"
	patch -i "$srcdir/search-local.patch"
	}

build() {
  cd "${srcdir}"/${pkgname}-${pkgver}
  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --disable-lynx
  make
}

package() {
  make -C"${srcdir}/${pkgname}-${pkgver}" DESTDIR="${pkgdir}" install
}