# Packaged by Didier Spaier <didier~at~slint~dot~fr>

# The patches come from Debian

pkgname=cdtool
pkgver=2.1.8
pkgrel=2slint
source=("https://hinterhof.net/cdtool/dist/cdtool-2.1.8.tar.gz" \
)
https://hinterhof.net/cdtool/
docs=("CHANGES" "COPYING" "CREDIT" "README")
options=("nosrcpack")

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"cdtool (control the audio functions of an attached CDROM drive)"
"cdtool is a command line and scriptable application which consists of"
"several programs. Most of them are really one program that can be"
"called with multiple different names."
"After installation /usr/doc/cdtool-2.1.8/README and the man pages for:"
"cdadd, cdctrl, cdloop, cdown, cdtool and cdtool2cddb"
)
build() {
  cd $SRC/$pkgname-$pkgver || return 1
  for i in $(cat $startdir/patches/series); do
    patch -p1 --verbose < $startdir/patches/$i || exit 1
  done
  ./configure --prefix=/usr libdir=/usr/lib64
  make
  make install DESTDIR=$PKG
  rm -f $PKG/usr/lib*/*.la
}
