summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: de44ddf0c7d4ba8df8fe4287ac26e87526157072 (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: Jean-Claude Graf <mail@jeanclaudegraf.ch>
pkgname=linux-router
pkgver=0.7.6
pkgrel=1
pkgdesc='Set Linux as router in one command'
url='https://github.com/garywill/linux-router'
arch=(any)
license=(LGPL-2.1-only)
depends=(bash procps-ng iproute2 dnsmasq iptables)
optdepends=(
  'hostapd: WiFi hotspot capability',
  'iw: WiFi hotspot capability',
  'iwconfig: if "iw" can not recognize your adapter',
  'haveged: improve random entropy',
  'qrencode: QR code support')
provides=(lnxrouter linuxrouter)
source=("$pkgname-$pkgver.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('4462a8bf4e1e17b73e55ec33de2f2082cc5dab8e641b77b245b41520cbbf20ff')

package() {
  cd "$pkgname-$pkgver"
  install -Dm755 lnxrouter -t "$pkgdir/usr/bin"
  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/lnxrouter"
  install -Dm644 README.md -t "$pkgdir/usr/share/doc/lnxrouter"
}

# vim: ts=2 sw=2 et: