summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b40011f75ba5e9c5244143000af29f4c0c12005b (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
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>

pkgname=mstpd
pkgver=0.1.0
pkgrel=1
pkgdesc="User-space RSTP and MSTP daemon"
url="https://github.com/mstpd/mstpd"
arch=('i686' 'x86_64')
license=('GPL2')
depends=('glibc')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
        'mstpd.service')
sha256sums=('03d1ff4ca189d54322562cb2891888768af719d2c73ceafa5f1ca96133dffeb2'
            '36c03f67ca55efc2822e2bec04d62c9f43417772b7a10effcf584664ff78227b')

build() {
  cd "$pkgname-$pkgver"
  ./autogen.sh
  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --sbindir=/usr/bin \
    --libexecdir=/usr/lib \
    --with-bashcompletiondir=/usr/share/bash-completion/completions
  make
}

package() {
  make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
  install -Dvm644 mstpd.service -t "$pkgdir/usr/lib/systemd/system/"
}

# vim: ft=sh:ts=2:sw=2:et