summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDarren Ldl2019-04-08 21:27:10 +1000
committerDarren Ldl2019-04-08 21:27:10 +1000
commitec855b93d5b66a0279c4c5f9c66a4ac5754c5dc1 (patch)
tree1fa522435cdb79bd0be2f826f3a59ff325872c41 /PKGBUILD
downloadaur-ec855b93d5b66a0279c4c5f9c66a4ac5754c5dc1.tar.gz
Initial PKGBUILD and .SRCINFO upload
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..67a33211981
--- /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