aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOrhun Parmaksız <orhunparmaksiz@gmail.com>2024-02-21 22:42:44 +0300
committeromni <omni+alpine@hack.org>2024-04-18 02:08:52 +0000
commit6321ccc472802f1c50bc7fa0c6237d6cced6f4e1 (patch)
tree36f58e8c782451501113b994dd5b986bff6b49f5
parent62c457546ce18b7353a14b783fa1954222dc6b05 (diff)
testing/lychee: new aportHEADmaster
https://lychee.cli.rs Fast, async, resource-friendly link checker written in Rust testing/
-rw-r--r--testing/lychee/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/lychee/APKBUILD b/testing/lychee/APKBUILD
new file mode 100644
index 00000000000..76d5461e1ce
--- /dev/null
+++ b/testing/lychee/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Orhun Parmaksız <orhunparmaksiz@gmail.com>
+# Maintainer: Orhun Parmaksız <orhunparmaksiz@gmail.com>
+pkgname=lychee
+pkgver=0.14.3
+pkgrel=0
+pkgdesc="Fast, async, resource-friendly link checker written in Rust"
+url=https://lychee.cli.rs
+# !s390x !armhf !riscv64: openssl fails to build
+arch="all !s390x !armhf !riscv64"
+license="MIT OR Apache-2.0"
+makedepends="
+ cargo
+ cargo-auditable
+ perl
+ make
+ pkgconf
+ "
+subpackages="$pkgname-doc"
+options="net"
+source="$pkgname-$pkgver.tar.gz::https://github.com/lycheeverse/lychee/archive/v$pkgver/lychee-$pkgver.tar.gz
+ fix-ssl-certificate-tests.patch::https://github.com/lycheeverse/lychee/commit/381d368fbfd773fa07b62e32dc51d38a888ea873.patch"
+
+prepare() {
+ default_prepare
+ cargo fetch --target="$CTARGET" --locked
+}
+
+build() {
+ cargo auditable build --frozen --release --features vendored-openssl
+}
+
+check() {
+ cargo test --features vendored-openssl -- --test-threads 1
+}
+
+package() {
+ install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
+ install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm 644 LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+sha512sums="
+aa2ede6734b0aff9775347b72cb51b914f6387bb42463f604ab8d6f661944600bb5a856145c0820a5ac692464a738aced0571cdce44a6a33a6d94240bbdbfc34 lychee-0.14.3.tar.gz
+f1591f6316257095924ca3ff2609ad0a34e2ee86f34b9e00ba607e0591e3ad61b48998d8773ee442e7dbe01028d11a35d74a812a4e4bbbfb34b359717ec1dda1 fix-ssl-certificate-tests.patch
+"