diff options
author | heliochronix | 2018-07-16 22:50:06 -0700 |
---|---|---|
committer | heliochronix | 2018-07-16 22:50:06 -0700 |
commit | cdc9357ac2c6c8b16aa59e3c8c18ea95974abc75 (patch) | |
tree | 33e4b6ac18e8c2c38045d5ae16fd24d2013b1dcc | |
download | aur-cdc9357ac2c6c8b16aa59e3c8c18ea95974abc75.tar.gz |
Initial commit of libfec-git package contents
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..be66d6896e0f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = libfec-git + pkgdesc = Phil Karn's FEC (Forward Error Correction) library + pkgver = 1.0.r10.g9750ca0 + pkgrel = 1 + url = https://github.com/quiet/libfec + arch = x86_64 + arch = aarch64 + license = LGPL2.1 + makedepends = git + makedepends = cmake + provides = libfec + conflicts = libfec + source = git+https://github.com/quiet/libfec.git + sha256sums = SKIP + +pkgname = libfec-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c414feb17dbe --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: heliochronix <heliochronix@gmail.com> + +pkgname=libfec-git +pkgver=1.0.r10.g9750ca0 +pkgrel=1 +pkgdesc="Phil Karn's FEC (Forward Error Correction) library" +arch=('x86_64' 'aarch64') +url="https://github.com/quiet/libfec" +license=('LGPL2.1') +makedepends=('git' 'cmake') +provides=('libfec') +conflicts=('libfec') +source=("git+$url.git") +sha256sums=('SKIP') + +pkgver() { + cd libfec + + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + mkdir -p libfec/build + cd libfec/build + + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + + make +} + +check() { + cd libfec/build + + make test_all +} + +package() { + cd libfec/build + + make DESTDIR="$pkgdir" install +} |