# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cramfs
pkgver=1.1
pkgrel=7
pkgdesc="Linux filesystem designed to be simple, small, and to compress things well"
arch="all"
url="https://sourceforge.net/projects/cramfs/"
license="GPL-2.0-or-later"
makedepends="zlib-dev linux-headers"
source="https://downloads.sourceforge.net/cramfs/cramfs-$pkgver.tar.gz
	mkcramfs-include-sysmacros.patch
	gcc14.patch
	"
options="!check"

build() {
	make
}

package() {
	install -Dm755 -t "$pkgdir"/sbin mkcramfs cramfsck
}

sha512sums="
6c18dbe32df57f7d132fb2a59a917ad381156ca1f720c1ad0997ca81c62e82fd43ebb0339c5a66d5b144a72ce5c7ae93596522fe2698259f2b68c31db26e3b63  cramfs-1.1.tar.gz
4cb3b50f76181775634a4cdf5d2d06ea90978f7059e0390e97f58c58896afee76e04e1df4e44f254285d7c80a76c3b053c36aa03b2e4cb3b9621c8aacd21368b  mkcramfs-include-sysmacros.patch
be7acef82b7b7dda2a60b123cae3e8ff03ead5432f13ab0256258c436d33a1882283d2c80b4ddd87debf9577e6f8fa6d92c903e72b6d9fc53a33c770968379be  gcc14.patch
"
