summaryrefslogtreecommitdiffstats
path: root/main/flashcache-utils/APKBUILD
blob: adf33417b96bdb9d57adf0138775512ac874d695 (plain)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=flashcache-utils
pkgver=3.1.1
pkgrel=0
pkgdesc="Userspace utilities for flashcache"
url="https://github.com/facebook/flashcache"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="flashcache-$pkgver.tar.gz::https://github.com/facebook/flashcache/archive/$pkgver.tar.gz"

_builddir="$srcdir"/flashcache-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"/src
	make -C utils
}

package() {
	cd "$_builddir"/src/utils
	make install DESTDIR="$pkgdir" || return 1
}

md5sums="387028e77ceb835b398e071e04988055  flashcache-3.1.1.tar.gz"
sha256sums="3e2d96ff618f947628f80212c9d8dd2c72c628f81f18cf0e4b6195bb3922ad61  flashcache-3.1.1.tar.gz"
sha512sums="0a9189b26c0b6cea7935428f633e565cfe2ef7b094a66f36d98f7d6b93b2c7314d20b052a0ac245ce4b1a0c7b117fd2df0712faf00987d088882f11fafe287f1  flashcache-3.1.1.tar.gz"