# Contributor: alealexpro100 <alealexn@gmail.com>
# Maintainer: alealexpro100 <alealexn@gmail.com>
pkgname=wimlib
pkgver=1.14.4
pkgrel=0
pkgdesc="Create, extract, and modify Windows Imaging archives"
url="https://wimlib.net/"
arch="all"
license="GPL-3.0-or-later"
makedepends="fuse3-dev ntfs-3g-dev"
checkdepends="bash ntfs-3g-progs"
subpackages="$pkgname-dev $pkgname-doc"
source="https://wimlib.net/downloads/wimlib-$pkgver.tar.gz
	rename.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-fuse \
		--with-ntfs-3g
	make
}

check() {
	make check
}

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

sha512sums="
f3c25ee14fe849f452f004ce8137ef040410ea048555ae71180086f010858b6ed593c8881b805bac65f9ee878bf11661a7f17677c6c24e2c77149c35ee0cd853  wimlib-1.14.4.tar.gz
48a70d6b32ba4c8d6faeca6e4dfc2ed83523c979d714c6dd8ef024cb7913b0240f35a671280ff7aa0b534ec8384b5f4f575c5f5ab70ce743741e8213017a0952  rename.patch
"
