summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD37
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..48490138e61
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = metamorpher
+ pkgdesc = A tool to convert files into metadata directory structures
+ pkgver = 0.1.1
+ pkgrel = 1
+ url = https://gitlab.com/JohnMoon/metamorpher
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ depends = gcc-libs
+ source = https://gitlab.com/JohnMoon/metamorpher/-/archive/0.1.1/metamorpher-0.1.1.tar.gz
+ sha512sums = ba9600c790e6fb38954995f69584b9a738b0ad61a01389ddd54a788252821730dbe1e0f0be24b36e96418677e82a36ca2a07e5337f3315d1231b3029e097623c
+ b2sums = 276a2d6fbced9a099f02809ae0611300f277dc8a98c370236975036ab17ae286b3eaa8386334e5978a461810934bf3463ff8fc346dd44c4babba32994212d2c6
+
+pkgname = metamorpher
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f9bb1b0338e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: John Moon <john@jmoon.dev>
+# Contributor: John Moon <john@jmoon.dev>
+pkgname=metamorpher
+pkgver=0.1.1
+pkgrel=1
+pkgdesc='A tool to convert files into metadata directory structures'
+url='https://gitlab.com/JohnMoon/metamorpher'
+arch=('x86_64')
+license=('MIT')
+depends=('gcc-libs')
+makedepends=('cargo')
+source=("${url}/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('ba9600c790e6fb38954995f69584b9a738b0ad61a01389ddd54a788252821730dbe1e0f0be24b36e96418677e82a36ca2a07e5337f3315d1231b3029e097623c')
+b2sums=('276a2d6fbced9a099f02809ae0611300f277dc8a98c370236975036ab17ae286b3eaa8386334e5978a461810934bf3463ff8fc346dd44c4babba32994212d2c6')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ cargo build --release --locked --all-features --target-dir=target
+}
+
+check() {
+ cd "${pkgname}-${pkgver}"
+ cargo test --release --locked --target-dir=target
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ install -Dm 755 "target/release/${pkgname}" -t "${pkgdir}/usr/bin"
+ install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et: