summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e89675554e51fd678d0f30226a631db0aa8af9b (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: Kenneth Henderick <kenneth@ketronic.be>
# Maintainer: Donald Webster <fryfrog@gmail.com>
# Contributor: kfgz <kfgz at interia dot pl>
# Contributor: : philomath <philomath868 at gmail dot com>
# Contributor: Florian "Bluewind" Pritz <flo at xssn dot at>
# Contributor: Tim Karreman <tim at karreman dot net>

pkgname=mbuffer
pkgver=20190725
pkgrel=1
pkgdesc="A tool for buffering data streams."
arch=('x86_64' 'armv7l')
url="http://www.maier-komor.de/mbuffer.html"
license=('GPL3')
depends=('openssl')
backup=('etc/mbuffer.rc')
source=("http://www.maier-komor.de/software/${pkgname}/${pkgname}-${pkgver}.tgz")
md5sums=('ba73ff60b121f2feb5980df1bcbe9c72')

build() {
  cd "${srcdir}"/${pkgname}-${pkgver}
  ./configure --prefix=/usr \
  --disable-debug
  make
}

package() {
  cd "${srcdir}"/${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install

  # Put the mbuffer.rc in /etc instead of /usr/etc
  mkdir -p "${pkgdir}/etc"
  mv "${pkgdir}/usr/etc/mbuffer.rc" "${pkgdir}/etc/"
  rmdir "${pkgdir}/usr/etc"
}