From 82721bc508eb495a9fdf77db0735698fbe89758b Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Wed, 26 Feb 2025 11:10:50 -0800 Subject: [PATCH] testing/cosmic-app-library: new aport --- testing/cosmic-app-library/APKBUILD | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 testing/cosmic-app-library/APKBUILD diff --git a/testing/cosmic-app-library/APKBUILD b/testing/cosmic-app-library/APKBUILD new file mode 100644 index 00000000000..ca533b88c3d --- /dev/null +++ b/testing/cosmic-app-library/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Clayton Craft +# Maintainer: Clayton Craft +pkgname=cosmic-app-library +pkgver=1.0.0_alpha6 +_upstreamver="${pkgver/_alpha/-alpha.}" +pkgrel=0 +pkgdesc="Application launcher for the COSMIC Desktop Environment" +url="https://github.com/pop-os/cosmic-applibrary" +arch="aarch64 x86_64" +license="GPL-3.0-only" +depends=" + cosmic-icons +" +makedepends=" + cargo + just + libxkbcommon-dev +" +options="net !check" # fetch dependencies, no tests +source="$pkgname-$pkgver.tar.gz::https://github.com/pop-os/cosmic-applibrary/archive/refs/tags/epoch-$_upstreamver.tar.gz" +builddir="$srcdir/cosmic-applibrary-epoch-$_upstreamver" + +prepare() { + default_prepare + cargo fetch --target="$CTARGET" --locked +} + +build() { + just build-release --frozen +} + +check() { + cargo test --release --frozen +} + +package() { + just rootdir="$pkgdir" install +} + +sha512sums=" +18ae7545716e2043e6de067b6b1157fb784ed78af27373de373792e3fc7e30f9e9a0fc8db240e687e8dd641fdb74bead83f3e9cb6d13a339b429ffd31ee47769 cosmic-app-library-1.0.0_alpha6.tar.gz +"