# Maintainer: Joćo Guerra <joca.bt@gmail.com>

pkgname="idutils"
pkgver="4.6"
pkgrel="2"
pkgdesc="A fast, high-capacity, identifier database tool"
arch=("i686" "x86_64")
url="https://www.gnu.org/software/idutils/"
license=("GPL3")
source=("https://ftp.gnu.org/gnu/idutils/${pkgname}-${pkgver}.tar.xz")
sha256sums=('8181f43a4fb62f6f0ccf3b84dbe9bec71ecabd6dfdcf49c6b5584521c888aac2')

build () {
  cd "${pkgname}-${pkgver}"
  ./configure --prefix=/usr \
              --build=${CHOST} \
              --host=${CHOST}
  make
}

package () {
  cd "${pkgname}-${pkgver}"
  make prefix="${pkgdir}/usr" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  rm -rf "${pkgdir}/usr/lib"
}
