# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=libisofs
pkgver=1.5.0
pkgrel=0
pkgdesc="Library for creating and managing iso9660-based filesystems"
url="https://dev.lovelyhq.com/libburnia/web/wikis/home"
arch="all"
license="GPL-2.0+ AND Unicode-TOU"
makedepends="zlib-dev"
subpackages="$pkgname-dev"
source="http://files.libburnia-project.org/releases/libisofs-$pkgver.tar.gz"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="1d0bc488c18b95971b7aa89765d7b5772b64d17eadeae9ec52c0f880c6f68acee80ee39b603752a1f9fbe0f35029c27023d5a6710d149a0f568bb396c3dcede8  libisofs-1.5.0.tar.gz"