# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>

pkgname=gnulib-l10n
pkgver=20241231
pkgrel=1
pkgdesc="The Gnulib localizations"
url="https://www.gnu.org/software/gnulib/"
arch=(any)
license=(spdx:LGPL-2.0-or-later)
makedepends=(make gettext-devel gcc)
source=(
  https://ftp.gnu.org/pub/gnu/gnulib/$pkgname-$pkgver.tar.gz{,.sig}
)
sha256sums=('155752ba6796aa294cde87c2bf0e771a5891eeeacb131345be0e080a3ec0ceea'
            'SKIP')
validpgpkeys=(
  '9001B85AF9E1B83DF1BDA942F5BE8B267C6A406D' # Bruno Haible (Open Source Development) <bruno@clisp.org>
)

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

check() {
  cd "${pkgname}-${pkgver}"
  make check
}

package() {
  cd "${pkgname}-${pkgver}"
  make DESTDIR="$pkgdir" install
}
