summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 288fca5ca3016e0b6fc3d24b481871a3c16b7391 (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
# Maintainer: gbletr42 <gbletr42@gmail.com>
_pkgname="leopard"
pkgname="leopard-git"
pkgver=r2.6e5725e
pkgrel=1
pkgdesc="O(N Log N) MDS Reed-Solomon Block Erasure Code for Large Data"
arch=('i686' 'x86_64')
url="https://github.com/catid/leopard"
license=('BSD-3-Clause')
makedepends=('git' 'cmake')
source=('git+https://github.com/catid/leopard.git'
	'install.patch')
options=(staticlibs)
sha256sums=('SKIP'
           '0192dae0b2a7d4c26b57ed1780f4c57d4d355c33141a118c675ea334175bc859')
provides=(leopard)
conflicts=(leopard)

prepare() {
	patch --forward --strip=1 --input=../install.patch
}

build() {
	cd $_pkgname
	cmake -DCMAKE_INSTALL_PREFIX="/usr" -DBUILD_SHARED_LIBS=1 -S . -B build
	make -C build
}

package() {
	cd $_pkgname
	make -C build install DESTDIR="$pkgdir"

	install -Dm644 License.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}