blob: 1dac2638e56039455ba8924be8e332d01c0ce601 (
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
|
# Maintainer: gbletr42 <gbletr42@gmail.com>
_pkgname="wirehair"
pkgname="wirehair-git"
pkgver=r1.557c00c
pkgrel=4
pkgdesc="O(N) Fountain Code for Large Data"
arch=('i686' 'x86_64')
url="https://github.com/catid/wirehair"
license=('BSD-3-Clause')
options=(staticlibs)
makedepends=('git' 'cmake')
source=('git+https://github.com/catid/wirehair.git'
'static.patch')
sha256sums=('SKIP'
'54da02be64bbab9eaa1f93f0b91c3cb27f3fb87a5838fe115b40ec0e0918ad86')
provides=(wirehair)
conflicts=(wirehair)
prepare() {
patch --forward --strip=1 --input=../static.patch
}
build() {
cd $_pkgname
cmake -DCMAKE_INSTALL_PREFIX="/usr" -S . -B build
make -C build
}
package() {
cd $_pkgname
make -C build install DESTDIR="$pkgdir"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|