blob: 5ba6322f3e26c8be28063be3549ef0aa2df1af27 (
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
|
# Maintainer: Kazuki Sawada <kazuki@6715.jp>
pkgname=libnss-stns
pkgver=2.4.1
pkgrel=1
pkgdesc="We provide name resolution of Linux user group using STNS."
arch=('i686' 'x86_64')
url="https://github.com/STNS/libnss"
license=('MIT')
depends=('curl')
makedepends=('gcc')
source=("https://github.com/STNS/libnss/archive/v${pkgver}.tar.gz")
md5sums=('da45fbe32730b9768c16d1be92e858f8')
build() {
cd "${srcdir}/libnss-${pkgver}"
patch stns.c "${startdir}/stns.c.patch"
patch Makefile "${startdir}/Makefile.patch"
make
}
package() {
cd "${srcdir}/libnss-${pkgver}"
make PREFIX="${pkgdir}/usr" BINSYMDIR="${pkgdir}/usr/bin" install
install -dm777 "${pkgdir}/var/cache/stns/"
install -Dm644 stns.conf.example "${pkgdir}/etc/stns/client/stns.conf"
}
|