void-packages/srcpkgs/buffer/template

25 lines
684 B
Bash

# Template file for 'buffer'
pkgname=buffer
version=2014.11.26
revision=3
_gitrev=2b58f5b78f7511b4d4e2eb0e9f8b0af16dea3985
build_style=gnu-makefile
short_desc="Speed up writing tapes on remote tape drives"
maintainer="jbu <pullmoll@t-online.de>"
license="GPL-2.0-or-later"
homepage="https://github.com/scotte/buffer"
distfiles="https://github.com/scotte/buffer/archive/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=14a881fcd070b1dcd8ec91d8d036f22094c22ac3769c274f0d7d6799038a73c3
pre_build() {
sed -i Makefile \
-e"s;^\(CC\)=.*;\1=$CC;" \
-e's;$(CC) -o buffer $(CFLAGS) buffer.o sem.o;& $(LDFLAGS);'
}
do_install() {
vbin buffer
mv buffer.{man,1}
vman buffer.1
}