# Contributor: CyberLeo # Maintainer: CyberLeo pkgname=f2fs-tools pkgver=1.14.0 pkgrel=0 pkgdesc="Tools for the Flash-Friendly File System (F2FS)" url="https://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git" arch="all" options="!check" # No test suite. license="GPL-2.0+ OR LGPL-2.1+" depends="" makedepends="automake autoconf bsd-compat-headers slibtool util-linux-dev linux-headers" subpackages="$pkgname-doc $pkgname-dev $pkgname-libs" source="https://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/$pkgname-$pkgver.tar.gz slibtoolize.patch 0001-mkfs-link-using-libf2fs.la.patch" # XXX use version from https://bugs.gentoo.org/show_bug.cgi?id=929070 # when updating #secfixes: # 1.14.0-r0: # - CVE-2020-6104 # - CVE-2020-6105 # - CVE-2020-6106 # - CVE-2020-6107 # - CVE-2020-6108 prepare() { default_prepare export LIBTOOL="slibtool" export LIBTOOLIZE="slibtoolize" ./autogen.sh } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr make } package() { make install DESTDIR="$pkgdir" install -D -m644 mkfs/f2fs_format_utils.h "$pkgdir"/usr/include/ } sha512sums="951b74178f99722550e73f331be066f124f6ee6022710f6b47ae47390b978b08f12a7f2a268d82ca69a32bf440cd3ce3adddc8a4c49c32df83da87e7f659f98d f2fs-tools-1.14.0.tar.gz 267a45f9226e0a76df433ffa8777173f9eedd4fa3562534ad50e2cb972970acad5ea1b2d4914cb256dd91b4290afcd047a60a4e4e3f474d50f1ef8e7e0500481 slibtoolize.patch 899e122046e36bb5ee5b1ece9bce4cfcc905cbdf959050afe66f6f517e786296e5fae9dc05708765445e595d811f2d1d36af40152ee2623974e03feae8c5a759 0001-mkfs-link-using-libf2fs.la.patch"