Compare commits
2 Commits
c0514202c0
...
b6e3e4a533
| Author | SHA1 | Date | |
|---|---|---|---|
| b6e3e4a533 | |||
| 0b0d9a9e3b |
32
brlaser/APKBUILD
Normal file
32
brlaser/APKBUILD
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# Maintainer:
|
||||||
|
pkgname=brlaser
|
||||||
|
pkgver=0_git20250111
|
||||||
|
_pkgsha=61492a2dd713e2790f455084b1bcdf778ee7cbcc
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Driver for Brother printers like the DCP 7030 and DCP 7065"
|
||||||
|
url="https://github.com/Owl-Maintain/brlaser"
|
||||||
|
arch="all"
|
||||||
|
license="GPL-2.0-or-later"
|
||||||
|
depends="cups-filters"
|
||||||
|
makedepends="cmake cups-dev samurai"
|
||||||
|
source="brlaser-$_pkgsha.tar.gz::https://github.com/Owl-Maintain/brlaser/archive/$_pkgsha.tar.gz"
|
||||||
|
builddir="$srcdir/brlaser-$_pkgsha"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cmake -B build -G Ninja \
|
||||||
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr
|
||||||
|
cmake --build build
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
ctest --test-dir build
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
DESTDIR="$pkgdir" cmake --install build
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
99310224a1b044bb0e03b102f64bb4211e78f8fceb52d10f4ece931c085ab0713fc38332c28a5d2e0a5a4c6d03746f204e11ee0b6f6a39db48c26e519b47dd89 brlaser-61492a2dd713e2790f455084b1bcdf778ee7cbcc.tar.gz
|
||||||
|
"
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
# Maintainer: Galen Abell <galen@galenabell.com>
|
|
||||||
pkgname=helix-fork
|
|
||||||
_pkgname=helix
|
|
||||||
_pkgsha=786b5c533e32cfe88dbf8742fdbc18829fb46334
|
|
||||||
pkgver=0_git20240211
|
|
||||||
pkgrel=0
|
|
||||||
pkgdesc="A post-modern modal text editor"
|
|
||||||
url="https://helix-editor.com/"
|
|
||||||
arch="x86_64"
|
|
||||||
license="MPL-2.0"
|
|
||||||
makedepends="cargo cargo-auditable"
|
|
||||||
options="net !check"
|
|
||||||
source="$_pkgname-$_pkgsha.tar.gz::https://github.com/helix-editor/helix/archive/$_pkgsha.tar.gz
|
|
||||||
diagnostics.patch
|
|
||||||
runtime-dir-fhs-location.patch
|
|
||||||
"
|
|
||||||
builddir="$srcdir/$_pkgname-$_pkgsha"
|
|
||||||
|
|
||||||
# Don't build tree-sitter languages, we provide them in standalone aports.
|
|
||||||
export HELIX_DISABLE_AUTO_GRAMMAR_BUILD=1
|
|
||||||
|
|
||||||
prepare() {
|
|
||||||
default_prepare
|
|
||||||
|
|
||||||
cargo fetch --target="$CTARGET" --locked
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cargo auditable build --frozen --release
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
install -D -m755 target/release/hx -t "$pkgdir"/usr/bin/
|
|
||||||
|
|
||||||
install -D -m644 contrib/Helix.desktop -t "$pkgdir"/usr/share/applications/
|
|
||||||
install -D -m644 logo.svg "$pkgdir"/usr/share/icons/hicolor/scalable/apps/Helix.svg
|
|
||||||
|
|
||||||
install -d -m755 "$pkgdir"/usr/share/$_pkgname
|
|
||||||
cp -r runtime "$pkgdir"/usr/share/$_pkgname/
|
|
||||||
|
|
||||||
rm -rf "$pkgdir"/usr/share/$_pkgname/runtime/grammars
|
|
||||||
ln -Ts ../../../lib/tree-sitter "$pkgdir"/usr/share/$_pkgname/runtime/grammars
|
|
||||||
}
|
|
||||||
sha512sums="
|
|
||||||
2745f4ccd07cc2b3de37229b36ed7949596fc4371c6e9eb99cae9f38eee910b04b04e06a1194d96fa04b9bb72f978b0910fe57c0f0dd8ef2d6129c5a5beca606 helix-786b5c533e32cfe88dbf8742fdbc18829fb46334.tar.gz
|
|
||||||
e528e916041f184c6eba48cebf1e08847b5fd6b0ac91973f2d35186e93e3d2904a9ddd75e3831acbf034724ffb4861943595b884087ddcb92443f36ad5bc3a44 diagnostics.patch
|
|
||||||
0d72f5528106df006764a201caf7fefa860e67646198818fd744257050ac566082569b289f0a1815dd14f0b1364e344f8841e3c6757377d8452d8ebd5b022d29 runtime-dir-fhs-location.patch
|
|
||||||
"
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,35 +0,0 @@
|
|||||||
From: Jakub Jirutka <jakub@jirutka.cz>
|
|
||||||
Date: Wed, 02 Feb 2022 00:55:24 +0100
|
|
||||||
Date: Mon, 04 Apr 2022 02:48:13 +0200
|
|
||||||
Subject: [PATCH] Change runtime directory location to follow FHS
|
|
||||||
|
|
||||||
Helix allows to specify the location of the runtime directory (which
|
|
||||||
contains arch-independent modules) via environment variable
|
|
||||||
`HELIX_RUNTIME`. Using this would require installing a wrapper script
|
|
||||||
to set this variable prior executing `hx`.
|
|
||||||
|
|
||||||
If this environment variable is not set, Helix fallbacks to directory
|
|
||||||
`./runtime` relative to the directory of the `hx` executable. This is not
|
|
||||||
suitable for Alpine (FHS).
|
|
||||||
|
|
||||||
This patch changes the fallback to `/usr/share/helix/runtime`.
|
|
||||||
--- i/helix-loader/src/lib.rs
|
|
||||||
+++ w/helix-loader/src/lib.rs
|
|
||||||
@@ -56,11 +56,12 @@ fn prioritize_runtime_dirs() -> Vec<PathBuf> {
|
|
||||||
|
|
||||||
// fallback to location of the executable being run
|
|
||||||
// canonicalize the path in case the executable is symlinked
|
|
||||||
- let exe_rt_dir = std::env::current_exe()
|
|
||||||
- .ok()
|
|
||||||
- .and_then(|path| std::fs::canonicalize(path).ok())
|
|
||||||
- .and_then(|path| path.parent().map(|path| path.to_path_buf().join(RT_DIR)))
|
|
||||||
- .unwrap();
|
|
||||||
+ let exe_rt_dir = PathBuf::from("/usr/share/helix").join(RT_DIR);
|
|
||||||
+ // let exe_rt_dir = std::env::current_exe()
|
|
||||||
+ // .ok()
|
|
||||||
+ // .and_then(|path| std::fs::canonicalize(path).ok())
|
|
||||||
+ // .and_then(|path| path.parent().map(|path| path.to_path_buf().join(RT_DIR)))
|
|
||||||
+ // .unwrap();
|
|
||||||
rt_dirs.push(exe_rt_dir);
|
|
||||||
rt_dirs
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user