### this file is sourced not run
PKGVER=0.8.0
PKGBUILD=1
PKGARCH=x86_64

TARBALL=tre-$PKGVER.tar.gz
MD5SUM=2fd70fa65cb8e5d6b6b99f6e4a4b8913
SRC_URL=http://laurikari.net/tre/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="tre: TRE $PKGVER with agrep (approximate regex matching)
tre: TRE is a lightweight, robust, and efficient POSIX compliant regexp matching
tre: library with some exciting features such as approximate (fuzzy) matching.
tre: TRE includes a version of the agrep (approximate grep) command line tool
tre: for approximate regexp matching in the style of grep.
tre:
tre: BSD-style license.
tre:
tre:
tre: http://laurikari.net/tre/
tre: https://github.com/laurikari/tre
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
  pkg_build_autoconf &&
  pkg_build_slackdesc
  return $?

  # above equivalent to below

  # cd /tmp/tre*
  # CONFFLAGS="$CONFFLAGS --prefix=/usr --libdir=/usr/lib64"
  # ./configure $CONFFLAGS &&
  # make $MAKEFLAGS &&
  # make $MAKEINSTALLFLAGS install &&
  # pkg_build_slackdesc
}

pkg_package() {
  #pkg_remove_whiteout usr &&
  #  pkg_remove_empty_dirs usr &&
    pkg_build_pet_file ${PKG} \
      "Category='BuildingBlock'" \
      "Dependencies=''" \
      "Description='TRE 0.8.0 with agrep approximate (fuzzy) matching.'"
}

# vim: ft=sh:
