A blueprint/APKBUILD => blueprint/APKBUILD +39 -0
@@ 0,0 1,39 @@
+# Maintainer: Jakob Meier <comcloudway@ccw.icu>
+pkgname=blueprint
+pkgver=2.0.0
+pkgrelease=stable # or beta
+pkgrel=0
+pkgdesc="This is the official BluePrint Compiler (bpc) It can be used to transpile the BluePrint lisp flavour to javascript"
+url="https://codeberg.org/comcloudway/blueprint"
+arch="all"
+license="GPL-3.0-or-later"
+depends=""
+makedepends="cargo"
+checkdepends=""
+install=""
+#subpackages="$pkgname-dev $pkgname-doc"
+source="$pkgname-$pkgrelease-$pkgver.tar.gz::https://codeberg.org/comcloudway/blueprint/archive/$pkgrelease-$pkgver.tar.gz"
+builddir="$srcdir/$pkgname"
+
+prepare() {
+ default_prepare
+
+ cargo fetch
+}
+
+build() {
+ cargo build --frozen --release
+}
+
+check() {
+ cargo test --frozen
+}
+
+package() {
+ cargo install --frozen --offline --path . --root="$pkgdir/usr"
+ rm "$pkgdir"/usr/.crates*
+}
+
+sha512sums="
+e611cf24a6cc189e8df5351bdd7694780f04c28bd16c3f256075a9ca0316489364a9aaa9febbff47140c8edb8e21f1ad906c175bf9f7f525c814ebf0fe1bd1e5 blueprint-stable-2.0.0.tar.gz
+"