# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cramfs
pkgver=1.1
pkgrel=2
pkgdesc="Linux filesystem designed to be simple, small, and to compress things well"
arch="all"
url="https://sourceforge.net/projects/cramfs/"
license='GPL'
depends=
makedepends="zlib-dev linux-headers"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"

build() {
	cd "$srcdir/$pkgname-$pkgver"
	make CFLAGS="$CFLAGS -D_GNU_SOURCE" || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	install -d "$pkgdir"/sbin
	install mkcramfs cramfsck "$pkgdir"/sbin
}

sha512sums="6c18dbe32df57f7d132fb2a59a917ad381156ca1f720c1ad0997ca81c62e82fd43ebb0339c5a66d5b144a72ce5c7ae93596522fe2698259f2b68c31db26e3b63  cramfs-1.1.tar.gz"
