aboutsummaryrefslogtreecommitdiffstats
path: root/main/f2fs-tools/APKBUILD
blob: ec225940ebb38ce356627caba4743b1249972bad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=f2fs-tools
pkgver=1.14.0
pkgrel=0
pkgdesc="Tools for the Flash-Friendly File System (F2FS)"
url="http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git"
arch="all"
license="GPL-2.0-or-later LGPL-2.1-or-later"
makedepends="automake autoconf bsd-compat-headers
	libtool util-linux-dev linux-headers"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-libs"
source="https://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/f2fs-tools-$pkgver.tar.gz
	"

# secfixes:
#   1.14.0-r0:
#     - CVE-2021-6104
#     - CVE-2021-6105
#     - CVE-2021-6106
#     - CVE-2021-6107
#     - CVE-2021-6108

prepare() {
	default_prepare
	./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"