# Contributor: Alyx <alyx@leuhta.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=musl-locales
pkgver=0.1.0
pkgrel=0
pkgdesc="Locale program for musl"
url="https://git.adelielinux.org/adelie/musl-locales/-/wikis/home"
arch="all"
options="!check"  # No test suite.
license="LGPL-3.0-only"
depends=""
makedepends="cmake gettext-tiny-dev"
subpackages="$pkgname-lang"
source="https://git.adelielinux.org/adelie/musl-locales/-/archive/$pkgver/$pkgname-$pkgver.tar.bz2"

build() {
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		.
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

lang() {
	license="MIT"
	default_lang
}

sha512sums="4c7ae748f70d02195d221ea9b37e0f033e15c9364b797313727303830fb1d848693facb5267a1d7f354508383d72817e3322f001d86842fa716cecf6ef95c7ff  musl-locales-0.1.0.tar.bz2"