summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c718e518cf57b2168612441db243f48adf04810 (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
# Maintainer: Konstantin Shalygin <k0ste@k0ste.ru>
# Contributor: Konstantin Shalygin <k0ste@k0ste.ru>

pkgname='opennhrp'
pkgver='0.14.1'
pkgrel='1'
pkgdesc="An opensource NHRP implementation"
arch=('x86_64' 'aarch64')
url="https://sourceforge.net/projects/${pkgname}"
license=('MIT')
depends=('linux>=3.7.4-1' 'bash' 'c-ares')
backup=("etc/${pkgname}/${pkgname}.conf")
source=("https://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
sha256sums=('1517d53d688ffc165a1da20c344d96b4c53e60f34bd73c64e60cb67cfca4e9ab')

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

  make SBINDIR="/usr/bin"
}

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

  make DESTDIR="${pkgdir}" install
  install -Dm0644 "MIT-LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}