summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f9dca04eaf56bcbf5b9c45c7712bbe2d91fd02f9 (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
# Maintainer: Tun Win Naing <tunwn.mdy@gmail.com>

pkgname=dev-tld-resolver-git
_pkgname=dev-tld-resolver
pkgver=r12.g4924eff
pkgrel=1
pkgdesc="Simple top level domain (NSSwitch hosts) resolver for linux based development environment."
arch=('any')
url="https://github.com/puma/dev-tld-resolver"
install=dev-tld-resolver.install
license=('MIT')
depends=('glibc')
source=("git+https://github.com/puma/dev-tld-resolver.git")
sha256sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  printf "r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${_pkgname}"/src

  make
}

package () {
  cd "${srcdir}/${_pkgname}"/src
  install -Dm755 libnss_dev_tld.so.2 "${pkgdir}/usr/lib/libnss_dev_tld.so.2"

  cd "${srcdir}/${_pkgname}"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}

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