diff options
author | Darren Ldl | 2019-04-08 21:27:10 +1000 |
---|---|---|
committer | Darren Ldl | 2019-04-08 21:27:10 +1000 |
commit | ec855b93d5b66a0279c4c5f9c66a4ac5754c5dc1 (patch) | |
tree | 1fa522435cdb79bd0be2f826f3a59ff325872c41 | |
download | aur-ec855b93d5b66a0279c4c5f9c66a4ac5754c5dc1.tar.gz |
Initial PKGBUILD and .SRCINFO upload
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ca2ec5bc3119 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = blkar + pkgdesc = Archive with forward error correction and sector level recoverability + pkgver = 4.0.0 + pkgrel = 1 + url = https://github.com/darrenldl/blockyarchive + arch = x86_64 + license = MIT + checkdepends = cargo + makedepends = cargo + depends = gcc-libs + source = https://github.com/darrenldl/blockyarchive/archive/v4.0.0.tar.gz + sha256sums = 4a63ea09aad24cdf5983fd65c31c1b400b6dc6df0f171d6e6b8b2df645e7d4e7 + +pkgname = blkar + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..67a332119810 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Darren Ldl <darrenldldev@gmail.com> +pkgname=blkar +pkgver=4.0.0 +pkgrel=1 +epoch= +pkgdesc="Archive with forward error correction and sector level recoverability" +arch=('x86_64') +url="https://github.com/darrenldl/blockyarchive" +license=('MIT') +depends=('gcc-libs') +makedepends=('cargo') +checkdepends=('cargo') +source=("https://github.com/darrenldl/blockyarchive/archive/v${pkgver}.tar.gz") +sha256sums=('4a63ea09aad24cdf5983fd65c31c1b400b6dc6df0f171d6e6b8b2df645e7d4e7') + +build() { + cd "blockyarchive-$pkgver" + cargo build --release --locked +} + +check() { + cd "blockyarchive-$pkgver" + cargo test --release --locked +} + +package() { + cd "blockyarchive-$pkgver" + install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}
\ No newline at end of file |