app=libgpg-error
version=1.39
build=1sml
homepage="https://www.gnupg.org/software/libgpg-error/index.html"
download="https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-$version.tar.bz2"
desc="library that provides common error values and functions for all GnuPG components"
requires="musl"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --disable-nls 

  make
  make install DESTDIR=$pkg

  cp COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
9e67deaf4307fc1b8e9553be019e4c0dfc9554ba9e3151bb233fdb084f205fd1f934e12b6a4316e20aac21db919a4230fa11cd96ddad27a73073aca428d48404  libgpg-error-1.39.tar.lz
"
