# Description: draw boxes around text
# URL: https://boxes.thomasjensen.com/boxes.shtml
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: libpcre2 libunistring

name=boxes
version=2.2.0
release=1
source=(https://github.com/ascii-boxes/boxes/archive/v$version/$name-$version.tar.gz)

build () {
  cd $name-$version

  sed -i -e "s|^GLOBALCONF.*|GLOBALCONF = /usr/share/boxes/config|" Makefile

  make

  install -D out/boxes $PKG/usr/bin/boxes
  install -D doc/boxes.1 $PKG/usr/share/man/man1/boxes.1
  install -D boxes-config $PKG/usr/share/boxes/config
}
