mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 22:07:19 +02:00
testing/tridactyl-native: vendor nimble package list
Different mirrors seem to ship different package lists at the moment thus causing the build to fail if a certain mirror is selected. To workaround that, simply ship a package list with all dependencies as part of the package. To-Do: Also ensure that the integrity of the dependencies is verified by nimble, which doesn't seem to be the case at the moment. That is, nimble clones the repository and then just checks out a tag without verifying the integrity of the repository.
This commit is contained in:
parent
e7aa58d7dc
commit
db75110d7e
@ -9,7 +9,8 @@ arch="all !s390x" # limited by nim
|
|||||||
license="BSD-2-Clause"
|
license="BSD-2-Clause"
|
||||||
makedepends="nim nimble"
|
makedepends="nim nimble"
|
||||||
options="net !check" # no testsuite
|
options="net !check" # no testsuite
|
||||||
source="https://github.com/tridactyl/native_messenger/archive/refs/tags/$pkgver/tridactyl-native-firefox-$pkgver.tar.gz"
|
source="https://github.com/tridactyl/native_messenger/archive/refs/tags/$pkgver/tridactyl-native-firefox-$pkgver.tar.gz
|
||||||
|
packages.json"
|
||||||
builddir="$srcdir/native_messenger-$pkgver"
|
builddir="$srcdir/native_messenger-$pkgver"
|
||||||
|
|
||||||
# Set custom NIMBLE_DIR to not pollute $HOME/.nimble.
|
# Set custom NIMBLE_DIR to not pollute $HOME/.nimble.
|
||||||
@ -17,6 +18,10 @@ export NIMBLE_DIR="$srcdir/nimble"
|
|||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
default_prepare
|
default_prepare
|
||||||
|
|
||||||
|
mkdir -p "${NIMBLE_DIR}"
|
||||||
|
cp "$srcdir"/packages.json "$NIMBLE_DIR/packages_official.json"
|
||||||
|
|
||||||
sed -i tridactyl.json \
|
sed -i tridactyl.json \
|
||||||
-e "s|REPLACE_ME_WITH_SED|/usr/lib/$pkgname/native_main|"
|
-e "s|REPLACE_ME_WITH_SED|/usr/lib/$pkgname/native_main|"
|
||||||
}
|
}
|
||||||
@ -34,4 +39,5 @@ package() {
|
|||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
6bd29d3a024e0ec4e2a819991f3e6d36a92bb304345281bfd048f7d0d8f2c0a7ccce5d08c7fcdea67d8d729c04b9aa9cb0387e62eb0bb9e6d2fb9d5c8e881bdc tridactyl-native-firefox-0.3.8.tar.gz
|
6bd29d3a024e0ec4e2a819991f3e6d36a92bb304345281bfd048f7d0d8f2c0a7ccce5d08c7fcdea67d8d729c04b9aa9cb0387e62eb0bb9e6d2fb9d5c8e881bdc tridactyl-native-firefox-0.3.8.tar.gz
|
||||||
|
cc232d45be2ccf9b463536f0136abc9975c0753aacf93c36af57ee190374a38733b3cf7d67024195bcdfb801e11514e78b859deff718c039b4da1b5dd84a10ca packages.json
|
||||||
"
|
"
|
||||||
|
42
testing/tridactyl-native/packages.json
Normal file
42
testing/tridactyl-native/packages.json
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "tempfile",
|
||||||
|
"url": "https://github.com/OpenSystemsLab/tempfile.nim",
|
||||||
|
"method": "git",
|
||||||
|
"tags": [
|
||||||
|
"temp",
|
||||||
|
"mktemp",
|
||||||
|
"make",
|
||||||
|
"mk",
|
||||||
|
"mkstemp",
|
||||||
|
"mkdtemp"
|
||||||
|
],
|
||||||
|
"description": "Temporary files and directories",
|
||||||
|
"license": "MIT",
|
||||||
|
"web": "https://github.com/OpenSystemsLab/tempfile.nim"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "regex",
|
||||||
|
"url": "https://github.com/nitely/nim-regex",
|
||||||
|
"method": "git",
|
||||||
|
"tags": [
|
||||||
|
"regex"
|
||||||
|
],
|
||||||
|
"description": "Linear time regex matching",
|
||||||
|
"license": "MIT",
|
||||||
|
"web": "https://github.com/nitely/nim-regex"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "unicodedb",
|
||||||
|
"url": "https://github.com/nitely/nim-unicodedb",
|
||||||
|
"method": "git",
|
||||||
|
"tags": [
|
||||||
|
"unicode",
|
||||||
|
"UCD",
|
||||||
|
"unicodedata"
|
||||||
|
],
|
||||||
|
"description": "Unicode Character Database (UCD) access for Nim",
|
||||||
|
"license": "MIT",
|
||||||
|
"web": "https://github.com/nitely/nim-unicodedb"
|
||||||
|
},
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user