Compare commits
4 commits
1d6685992f
...
7e43ec2139
Author | SHA1 | Date | |
---|---|---|---|
7e43ec2139 | |||
5321a509c0 | |||
d2872a1ae8 | |||
52f8e7dd3d |
|
@ -1,25 +1,22 @@
|
|||
# Maintainer: Owen Trigueros <owentrigueros@gmail.com>
|
||||
|
||||
pkgname=httpdirfs
|
||||
pkgver=1.2.5
|
||||
pkgrel=2
|
||||
pkgver=1.2.7
|
||||
pkgrel=1
|
||||
pkgdesc="A filesystem which allows you to mount HTTP directory listings"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/fangfufu/httpdirfs"
|
||||
license=('GPL')
|
||||
depends=('gumbo-parser' 'fuse2' 'curl' 'expat')
|
||||
makedepends=('help2man' 'doxygen' 'graphviz')
|
||||
depends=('gumbo-parser' 'fuse3' 'curl' 'expat' 'util-linux-libs' 'openssl')
|
||||
makedepends=('meson' 'help2man' 'doxygen' 'graphviz')
|
||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/fangfufu/$pkgname/archive/$pkgver.tar.gz")
|
||||
md5sums=("77910de057b196ed7b3714f7a0698203")
|
||||
md5sums=("1e7d3ed7850d7a629e31b635e5954046")
|
||||
|
||||
build() {
|
||||
cd "$pkgname-$pkgver"
|
||||
make man
|
||||
make doc
|
||||
make
|
||||
arch-meson "$pkgname-$pkgver" build
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver"
|
||||
make prefix=/usr DESTDIR="$pkgdir" install
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
diff -ur quarto-cli-1.4.551.orig/src/project/types/website/website-search.ts quarto-cli-1.4.551/src/project/types/website/website-search.ts
|
||||
--- quarto-cli-1.4.551.orig/src/project/types/website/website-search.ts 2024-03-06 11:25:25.000000000 +1300
|
||||
+++ quarto-cli-1.4.551/src/project/types/website/website-search.ts 2024-03-06 22:04:38.498170207 +1300
|
||||
@@ -8,7 +8,7 @@
|
||||
import { basename, join, relative } from "path/mod.ts";
|
||||
|
||||
// currently not building the index here so not using fuse
|
||||
-// @deno-types="fuse/dist/fuse.d.ts"
|
||||
+//
|
||||
// import Fuse from "fuse/dist/fuse.esm.min.js";
|
||||
|
||||
import { DOMParser, Element, initDenoDom } from "../../../core/deno-dom.ts";
|
19
repo/quarto-cli/000_pandoc_lua.diff
Normal file
19
repo/quarto-cli/000_pandoc_lua.diff
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- quarto-cli-1.5.55/src/command/render/pandoc.ts.original 2024-07-27 22:49:08.770086319 +1200
|
||||
+++ quarto-cli-1.5.55/src/command/render/pandoc.ts 2024-07-27 22:49:23.266719276 +1200
|
||||
@@ -235,16 +235,6 @@
|
||||
pandocEnv["QUARTO_TRACE_FILTERS"] = traceFilters + traceCountSuffix;
|
||||
}
|
||||
}
|
||||
-
|
||||
- // https://github.com/quarto-dev/quarto-cli/issues/8274
|
||||
- // do not use the default LUA_CPATH, as it will cause pandoc to
|
||||
- // load the system lua libraries, which may not be compatible with
|
||||
- // the lua version we are using
|
||||
- if (Deno.env.get("QUARTO_LUA_CPATH") !== undefined) {
|
||||
- pandocEnv["LUA_CPATH"] = getEnv("QUARTO_LUA_CPATH");
|
||||
- } else {
|
||||
- pandocEnv["LUA_CPATH"] = "";
|
||||
- }
|
||||
};
|
||||
|
||||
// compute cwd for render
|
18
repo/quarto-cli/001_deno_1.44.diff
Normal file
18
repo/quarto-cli/001_deno_1.44.diff
Normal file
|
@ -0,0 +1,18 @@
|
|||
--- quarto-cli-1.4.556.original/src/core/deno-dom.ts 2024-06-27 08:15:10.000000000 +1200
|
||||
+++ quarto-cli-1.4.556/src/core/deno-dom.ts 2024-06-27 10:02:37.434536479 +1200
|
||||
@@ -98,13 +98,13 @@
|
||||
const genericParse = (
|
||||
parser: (
|
||||
srcBuf: Uint8Array,
|
||||
- srcLength: number,
|
||||
+ srcLength: bigint,
|
||||
returnBuf: Uint8Array,
|
||||
) => void,
|
||||
srcHtml: string,
|
||||
): string => {
|
||||
const encodedHtml = utf8Encoder.encode(srcHtml);
|
||||
- parser(encodedHtml, encodedHtml.length, returnBufSizeLen);
|
||||
+ parser(encodedHtml, BigInt(encodedHtml.length), returnBufSizeLen);
|
||||
|
||||
const outBufSize = Number(
|
||||
new DataView(returnBufSizeLenRaw).getBigUint64(0, !isBigEndian),
|
|
@ -1,85 +1,89 @@
|
|||
# Maintainer: Aleksandr Beliaev <trap000d at gmail dot com>
|
||||
# Maintainer: Harriet O'Brien <harrietobrien at protonmail dot com>
|
||||
# Contributor: Aleksandr Beliaev <trap000d at gmail dot com>
|
||||
|
||||
pkgname=quarto-cli
|
||||
pkgver=1.4.555
|
||||
pkgver=1.6.39
|
||||
pkgrel=1
|
||||
_pkgbasename=quarto-cli
|
||||
_denodomver="0.1.35-alpha-artifacts"
|
||||
#_pkgbasename=quarto-cli
|
||||
_denodomver="0.1.41-alpha-artifacts"
|
||||
_denover="2.0.4-1"
|
||||
_deno_commit=b7c282d
|
||||
_deno_arch="deno-x86_64-unknown-linux-gnu"
|
||||
pkgdesc="Quarto is an open-source scientific and technical publishing system built on [Pandoc](https://pandoc.org)."
|
||||
arch=('x86_64' 'i686')
|
||||
depends=('nodejs' 'deno' 'dart-sass' 'esbuild' 'pandoc' 'lua-lpeg' 'typst')
|
||||
makedepends=('git' 'npm' 'rust')
|
||||
pkgdesc="Quarto is an open-source scientific and technical publishing system built on [Pandoc](https://pandoc.org)"
|
||||
arch=('x86_64')
|
||||
depends=("nodejs"
|
||||
"deno"
|
||||
"dart-sass"
|
||||
"esbuild"
|
||||
"pandoc"
|
||||
"lua-lpeg"
|
||||
"typst")
|
||||
makedepends=("git"
|
||||
"npm"
|
||||
"rust")
|
||||
url="https://quarto.org/"
|
||||
license=('MIT')
|
||||
license=("MIT")
|
||||
provides=("quarto")
|
||||
conflicts=('quarto-cli-bin' 'quarto-cli-pre-release' 'quarto-cli-bin-pre-release' 'quarto-cli-git')
|
||||
conflicts=("quarto-cli-bin"
|
||||
"quarto-cli-pre-release"
|
||||
"quarto-cli-bin-pre-release"
|
||||
"quarto-cli-git")
|
||||
options=(!strip)
|
||||
|
||||
source=("${_pkgbasename}-${pkgver}.tar.gz::https://github.com/quarto-dev/quarto-cli/archive/refs/tags/v${pkgver}.tar.gz"
|
||||
"https://github.com/b-fuze/deno-dom/archive/refs/tags/v${_denodomver}.tar.gz"
|
||||
"000_deno_1.41.diff"
|
||||
)
|
||||
|
||||
sha256sums=('0e8ca6e1d5578011a74339890f0b6a2a7cbb0f822f24e0fbdfd4285ab04fab4d'
|
||||
'14fb042a6912041b9fda91fd643cf278764d075bc9539aa1e107475915cd896c'
|
||||
'd09e82634e6b64359c54d3a99b8abb4503cea3c62ef30b46d02ffcfde718d36c')
|
||||
prepare() {
|
||||
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
||||
patch -p1 < ../000_deno_1.41.diff
|
||||
}
|
||||
source=("https://github.com/quarto-dev/$pkgname/releases/download/v$pkgver/$provides-$pkgver-linux-amd64.tar.gz"
|
||||
"https://archive.archlinux.org/packages/d/deno/deno-$_denover-x86_64.pkg.tar.zst"
|
||||
"https://github.com/b-fuze/deno-dom/archive/refs/tags/v$_denodomver.tar.gz"
|
||||
"000_pandoc_lua.diff")
|
||||
sha256sums=("d797c796713a57c14d8115f49a45d626a16478697096a0421f2d2d980e5f9d4a"
|
||||
"897c81da3ca3cb1c236f111d237abfcc973cc0e7a4089ca3f21997e17cb0a9a2"
|
||||
"5ab1a73e73b9edf9d2c81e655658d970e6212497a5368d8f0bc8613bbdf8d91d"
|
||||
"0f27dff1e1b16e4f2f21c43b838aaae18bf9f82339eb65878b24de128f89450f")
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
||||
source configuration
|
||||
source "${srcdir}/${_pkgbasename}-${pkgver}/package/src/set_package_paths.sh"
|
||||
export QUARTO_VERSION=${pkgver}
|
||||
export QUARTO_VENDOR_BINARIES='false'
|
||||
export QUARTO_NO_SYMLINK='true'
|
||||
export DENO_DOM_PLUGIN="${srcdir}/deno-dom-${_denodomver}/target/release/libplugin.so"
|
||||
cd "$srcdir/$provides-$pkgver/"
|
||||
# source configuration
|
||||
# source "$srcdir/$provides-$pkgver/pkg/src/set_package_paths.sh"
|
||||
export QUARTO_VERSION=$pkgver
|
||||
export QUARTO_VENDOR_BINARIES="false"
|
||||
export QUARTO_NO_SYMLINK="true"
|
||||
export DENO_DOM_PLUGIN="$srcdir/deno-dom-$_denodomver/target/release/libplugin.so"
|
||||
if [ -z "$QUARTO_DENO" ]; then
|
||||
export QUARTO_DENO=$SCRIPT_PATH/../dist/bin/tools/deno
|
||||
fi
|
||||
# keep deno cache directory out of default $home/.cache/deno
|
||||
export DENO_DIR="${srcdir}/${_pkgbasename}-${pkgver}/package/cache"
|
||||
# Keep deno cache directory out of default $home/.cache/deno
|
||||
export DENO_DIR="$srcdir/$provides-$pkgver/package/cache"
|
||||
# Rust optimizations
|
||||
export CARGO_HOME="${srcdir}/${_pkgbasename}-${pkgver}/.cargo"
|
||||
export CARGO_HOME="$srcdir/$provides-$pkgver/.cargo"
|
||||
export RUSTFLAGS="-C strip=symbols"
|
||||
|
||||
mkdir -p package/dist/bin/tools/${arch}/dart-sass
|
||||
mkdir -p package/dist/bin/tools/${arch}/deno_dom
|
||||
cp /usr/bin/deno package/dist/bin/tools
|
||||
ln -sfT /usr/bin/pandoc package/dist/bin/tools/${arch}/pandoc
|
||||
ln -sfT /usr/bin/sass package/dist/bin/tools/${arch}/dart-sass/sass
|
||||
ln -sfT /usr/bin/esbuild package/dist/bin/tools/${arch}/esbuild
|
||||
mkdir -p package/dist/bin/tools/$arch/dart-sass
|
||||
mkdir -p package/dist/bin/tools/$arch/deno_dom
|
||||
cp $srcdir/usr/bin/deno package/dist/bin/tools
|
||||
ln -sfT /usr/bin/pandoc package/dist/bin/tools/$arch/pandoc
|
||||
ln -sfT /usr/bin/sass package/dist/bin/tools/$arch/dart-sass/sass
|
||||
ln -sfT /usr/bin/esbuild package/dist/bin/tools/$arch/esbuild
|
||||
|
||||
msg "Building Deno Stdlib..."
|
||||
cd "${srcdir}/deno-dom-${_denodomver}"
|
||||
cd "$srcdir/deno-dom-$_denodomver"
|
||||
cargo build --release
|
||||
|
||||
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
||||
# unsure if it's needed at all
|
||||
# package/dist/bin/tools/deno run --allow-all package/src/common/create-deno-config.ts > deno.jsonc
|
||||
cd package/src
|
||||
#../dist/bin/tools/deno run --unstable --allow-env --allow-read --allow-write --allow-run --allow-net --allow-ffi --importmap=../../src/dev_import_map.json bld.ts configure --log-level info
|
||||
../dist/bin/tools/deno run --unstable --allow-env --allow-read --allow-write --allow-run --allow-net --allow-ffi --importmap=../../src/import_map.json bld.ts prepare-dist --log-level info
|
||||
|
||||
cd "$srcdir/$provides-$pkgver/package/dist/bin/tools"
|
||||
deno run --unstable --allow-env --allow-read --allow-write --allow-run --allow-net --allow-ffi --importmap=../../../../share/conf/jsx-import-map.json ../../../../share/conf/jsx-runtime.ts prepare-dist --log-level info
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
||||
mkdir -p package/pkg-working/bin/tools/${arch}/dart-sass
|
||||
mkdir -p package/pkg-working/bin/tools/${arch}/deno_dom
|
||||
cp "${srcdir}/deno-dom-${_denodomver}/target/release/libplugin.so" "${srcdir}/${_pkgbasename}-${pkgver}/package/pkg-working/bin/tools/${arch}/deno_dom"
|
||||
cd "$srcdir/$provides-$pkgver"
|
||||
mkdir -p package/pkg-working/bin/tools/$arch/dart-sass
|
||||
mkdir -p package/pkg-working/bin/tools/$arch/deno_dom
|
||||
cp "$srcdir/deno-dom-$_denodomver/target/release/libplugin.so" "$srcdir/$provides-$pkgver/package/pkg-working/bin/tools/$arch/deno_dom"
|
||||
# keep legacy pandoc location, see https://github.com/quarto-dev/quarto/issues/237
|
||||
ln -sfT /usr/bin/pandoc package/pkg-working/bin/tools/pandoc
|
||||
ln -sfT /usr/bin/pandoc package/pkg-working/bin/tools/${arch}/pandoc
|
||||
ln -sfT /usr/bin/deno package/pkg-working/bin/tools/${arch}/deno
|
||||
ln -sfT /usr/bin/sass package/pkg-working/bin/tools/${arch}/dart-sass/sass
|
||||
ln -sfT /usr/bin/esbuild package/pkg-working/bin/tools/${arch}/esbuild
|
||||
ln -sfT /usr/bin/typst package/pkg-working/bin/tools/${arch}/typst
|
||||
ln -sfT /usr/bin/pandoc package/pkg-working/bin/tools/$arch/pandoc
|
||||
ln -sfT /usr/bin/deno package/pkg-working/bin/tools/$arch/deno
|
||||
ln -sfT /usr/bin/sass package/pkg-working/bin/tools/$arch/dart-sass/sass
|
||||
ln -sfT /usr/bin/esbuild package/pkg-working/bin/tools/$arch/esbuild
|
||||
ln -sfT /usr/bin/typst package/pkg-working/bin/tools/$arch/typst
|
||||
|
||||
install -d ${pkgdir}/usr/{bin,lib/${_pkgbasename}/{bin,share}}
|
||||
cp -R package/pkg-working/* "${pkgdir}/usr/lib/${_pkgbasename}"
|
||||
ln -sf "/usr/lib/${_pkgbasename}/bin/quarto" "$pkgdir/usr/bin/quarto"
|
||||
install -d $pkgdir/usr/{bin,lib/$pkgname/{bin,share}}
|
||||
cp -R package/pkg-working/* "$pkgdir/usr/lib/$pkgname"
|
||||
ln -sf "/usr/lib/$pkgname/bin/quarto" "$pkgdir/usr/bin/quarto"
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Maintainer: kyndair <kyndair at gmail dot com>
|
||||
pkgname=sacd-extract-git
|
||||
_pkgname=sacd-ripper
|
||||
pkgver=0.3.9.3.r107.g01c90dd
|
||||
pkgver=0.3.9.3.r117.g96084ff
|
||||
pkgrel=1
|
||||
pkgdesc="Extract DSDIFF files, DSF files or RAW ISO from SACD"
|
||||
arch=('i686' 'pentium4' 'x86_64')
|
||||
|
|
|
@ -1,92 +1,52 @@
|
|||
# Maintainer:
|
||||
|
||||
: ${CARGO_HOME:=$SRCDEST/cargo-home}
|
||||
: ${_nodeversion:=18}
|
||||
|
||||
_pkgname="vdhcoapp"
|
||||
pkgname="$_pkgname-git"
|
||||
pkgver=2.0.19.r4.g0b40d3e
|
||||
pkgrel=4
|
||||
pkgver=2.0.20.r4.gf8cc614
|
||||
pkgrel=1
|
||||
pkgdesc="Companion application for Video DownloadHelper browser add-on"
|
||||
url="https://github.com/aclap-dev/vdhcoapp"
|
||||
license=('GPL-2.0-or-later')
|
||||
arch=('x86_64')
|
||||
|
||||
makedepends=(
|
||||
'esbuild'
|
||||
'jq'
|
||||
'yq'
|
||||
_source_vdhcoapp() {
|
||||
makedepends=(
|
||||
'esbuild'
|
||||
'jq'
|
||||
'nvm' # AUR
|
||||
'yq'
|
||||
)
|
||||
|
||||
# AUR
|
||||
'nvm'
|
||||
)
|
||||
options=('emptydirs' '!strip' '!debug')
|
||||
install="$_pkgname.install"
|
||||
|
||||
options=('emptydirs' '!strip' '!debug')
|
||||
install="$_pkgname.install"
|
||||
provides=("$_pkgname=${pkgver%%.r*}")
|
||||
conflicts=("$_pkgname")
|
||||
|
||||
provides=("$_pkgname=${pkgver%%.r*}")
|
||||
conflicts=("$_pkgname")
|
||||
|
||||
_pkgsrc="$_pkgname"
|
||||
source=("$_pkgsrc"::"git+$url.git")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$_pkgsrc"
|
||||
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
_pkgsrc="$_pkgname"
|
||||
source=("$_pkgsrc"::"git+$url.git")
|
||||
sha256sums=('SKIP')
|
||||
}
|
||||
|
||||
# filepicker
|
||||
depends+=(
|
||||
'at-spi2-core'
|
||||
'gdk-pixbuf2'
|
||||
'gtk3'
|
||||
'pango'
|
||||
)
|
||||
makedepends+=(
|
||||
'cargo'
|
||||
'git'
|
||||
)
|
||||
_source_filepicker() {
|
||||
depends+=(
|
||||
'gtk3'
|
||||
)
|
||||
makedepends+=(
|
||||
'cargo'
|
||||
'git'
|
||||
)
|
||||
|
||||
_filepicker_url="https://github.com/paulrouget/static-filepicker"
|
||||
_filepicker_pkgsrc="vdhcoapp-filepicker"
|
||||
source+=("$_filepicker_pkgsrc"::"git+$_filepicker_url.git")
|
||||
sha256sums+=('SKIP')
|
||||
|
||||
_cargo_env() {
|
||||
export CARGO_HOME="$SRCDEST/cargo-home"
|
||||
export RUSTUP_TOOLCHAIN=stable
|
||||
export CARGO_TARGET_DIR=target
|
||||
_filepicker_url="https://github.com/paulrouget/static-filepicker"
|
||||
_filepicker_pkgsrc="vdhcoapp-filepicker"
|
||||
source+=("$_filepicker_pkgsrc"::"git+$_filepicker_url.git")
|
||||
sha256sums+=('SKIP')
|
||||
}
|
||||
|
||||
_nvm_env() {
|
||||
: ${_nodeversion:=18}
|
||||
|
||||
export HOME="$SRCDEST/node-home"
|
||||
export NVM_DIR="$SRCDEST/node-nvm"
|
||||
|
||||
# set up nvm
|
||||
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
|
||||
nvm install $_nodeversion
|
||||
nvm use $_nodeversion
|
||||
}
|
||||
|
||||
_filepicker_prepare() {
|
||||
_cargo_env
|
||||
|
||||
cd "$srcdir/$_filepicker_pkgsrc"
|
||||
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
||||
}
|
||||
|
||||
_filepicker_build() {
|
||||
_cargo_env
|
||||
|
||||
cd "$srcdir/$_filepicker_pkgsrc"
|
||||
cargo build --frozen --release --all-features
|
||||
}
|
||||
|
||||
_filepicker_package() {
|
||||
install -Dm755 "$srcdir/$_filepicker_pkgsrc/$CARGO_TARGET_DIR/release/filepicker" -t "$pkgdir/usr/bin/"
|
||||
}
|
||||
|
||||
prepare() {
|
||||
_prepare_vdhcoapp() (
|
||||
cd "$_pkgsrc"
|
||||
mv -f app/* .
|
||||
|
||||
|
@ -94,19 +54,24 @@ prepare() {
|
|||
tomlq . ./config.toml \
|
||||
| jq '.target.os = "linux"' \
|
||||
| jq '.target.arch = "amd64"' \
|
||||
| jq ".meta.version = \"${pkgver%%.r*}\"" \
|
||||
> src/config.json
|
||||
|
||||
# fix path to config.json
|
||||
sed -E -i src/main.js src/native-autoinstall.js \
|
||||
-e 's&^(const config = require\('\'')(config.json'\''\);)$&\1./\2&'
|
||||
)
|
||||
|
||||
_filepicker_prepare
|
||||
}
|
||||
_prepare_filepicker() (
|
||||
_cargo_env
|
||||
|
||||
build() {
|
||||
cd "$_filepicker_pkgsrc"
|
||||
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
||||
)
|
||||
|
||||
_build_vdhcoapp() (
|
||||
_nvm_env
|
||||
|
||||
# build
|
||||
cd "$_pkgsrc"
|
||||
|
||||
npm install --no-package-lock --no-audit --no-fund --prefer-offline
|
||||
|
@ -134,21 +99,68 @@ build() {
|
|||
)
|
||||
|
||||
./node_modules/.bin/pkg "${_pkg_options[@]}"
|
||||
)
|
||||
|
||||
_filepicker_build
|
||||
}
|
||||
_build_filepicker() (
|
||||
_cargo_env
|
||||
|
||||
package() {
|
||||
depends+=('ffmpeg')
|
||||
cd "$_filepicker_pkgsrc"
|
||||
cargo build --frozen --release --all-features
|
||||
)
|
||||
|
||||
_package_vdhcoapp() (
|
||||
cd "$_pkgsrc"
|
||||
|
||||
install -Dm755 vdhcoapp -t "$pkgdir/usr/bin/"
|
||||
|
||||
install -dm755 "$pkgdir/usr/lib/mozilla/native-messaging-hosts/"
|
||||
install -dm755 "$pkgdir/etc/opt/chrome/native-messaging-hosts/"
|
||||
install -dm755 "$pkgdir/etc/chromium/native-messaging-hosts/"
|
||||
install -dm755 "$pkgdir/etc/opt/edge/native-messaging-hosts/"
|
||||
)
|
||||
|
||||
_filepicker_package
|
||||
_package_filepicker() (
|
||||
_cargo_env
|
||||
install -Dm755 "$_filepicker_pkgsrc/$CARGO_TARGET_DIR/release/filepicker" -t "$pkgdir/usr/bin/"
|
||||
)
|
||||
|
||||
_cargo_env() {
|
||||
export CARGO_HOME
|
||||
export RUSTUP_TOOLCHAIN=stable
|
||||
export CARGO_TARGET_DIR=target
|
||||
}
|
||||
|
||||
_nvm_env() {
|
||||
export HOME="$SRCDEST/node-home"
|
||||
export NVM_DIR="$SRCDEST/node-nvm"
|
||||
|
||||
# set up nvm
|
||||
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
|
||||
nvm install $_nodeversion
|
||||
nvm use $_nodeversion
|
||||
}
|
||||
|
||||
_source_vdhcoapp
|
||||
_source_filepicker
|
||||
|
||||
prepare() {
|
||||
_prepare_vdhcoapp
|
||||
_prepare_filepicker
|
||||
}
|
||||
|
||||
pkgver() {
|
||||
cd "$_pkgsrc"
|
||||
git describe --long --tags --abbrev=7 --exclude='*[a-zA-Z][a-zA-Z]*' \
|
||||
| sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'
|
||||
}
|
||||
|
||||
build() {
|
||||
_build_vdhcoapp
|
||||
_build_filepicker
|
||||
}
|
||||
|
||||
package() {
|
||||
depends+=('ffmpeg')
|
||||
|
||||
_package_vdhcoapp
|
||||
_package_filepicker
|
||||
}
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# Maintainer:
|
||||
|
||||
_pkgname=vdhcoapp-filepicker
|
||||
: ${CARGO_HOME:=$SRCDEST/cargo-home}
|
||||
|
||||
_pkgname="vdhcoapp-filepicker"
|
||||
pkgname="$_pkgname"
|
||||
pkgver=1.0.1
|
||||
pkgrel=1
|
||||
|
@ -10,10 +12,7 @@ license=('GPL-2.0-or-later')
|
|||
arch=('x86_64')
|
||||
|
||||
depends=(
|
||||
'at-spi2-core'
|
||||
'gdk-pixbuf2'
|
||||
'gtk3'
|
||||
'pango'
|
||||
)
|
||||
makedepends=(
|
||||
'cargo'
|
||||
|
@ -25,8 +24,8 @@ source=("$_pkgsrc"::"git+$url.git#tag=v$pkgver")
|
|||
sha256sums=('SKIP')
|
||||
|
||||
_cargo_env() {
|
||||
export CARGO_HOME="${CARGO_HOME:-$SRCDEST/cargo-home}"
|
||||
export RUSTUP_TOOLCHAIN=${RUSTUP_TOOLCHAIN:-stable}
|
||||
export CARGO_HOME
|
||||
export RUSTUP_TOOLCHAIN=stable
|
||||
export CARGO_TARGET_DIR=target
|
||||
}
|
||||
|
||||
|
@ -45,5 +44,6 @@ build() {
|
|||
}
|
||||
|
||||
package() {
|
||||
_cargo_env
|
||||
install -Dm755 "$_pkgsrc/$CARGO_TARGET_DIR/release/filepicker" -t "$pkgdir/usr/bin/"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue