Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Johannes Müller
aports
Commits
7bd21b56
Commit
7bd21b56
authored
Mar 25, 2018
by
Jakub Jirutka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing/crystal: minor changes in abuild
parent
e0c7bc6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
testing/crystal/APKBUILD
testing/crystal/APKBUILD
+4
-6
No files found.
testing/crystal/APKBUILD
View file @
7bd21b56
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
# TODO: Fix SSL bindings for LibreSSL (
it's probably broken).
# TODO: Fix SSL bindings for LibreSSL (
https://github.com/crystal-lang/crystal/issues/4676)
pkgname
=
crystal
pkgver
=
0.24.2
pkgrel
=
1
...
...
@@ -36,7 +36,7 @@ export CRYSTAL_CACHE_DIR="$srcdir/.cache"
# we can also use prebuilt binary from upstream if needed.
snapshot
()
{
local
binary
=
"
$builddir
/.build/crystal"
local
tarname
=
"
$pkgname
-
$pkgver
-
$C
HOS
T
"
local
tarname
=
"
$pkgname
-
$pkgver
-
$C
TARGE
T
"
if
[
!
-f
"
$binary
"
]
||
!
file
"
$binary
"
|
grep
-qw
'statically linked'
;
then
msg
"Building statically linked crystal..."
...
...
@@ -64,9 +64,7 @@ prepare() {
release = 1
threads =
${
JOBS
:-
2
}
verbose = 1
EXTRA_FLAGS = --target
$CTARGET
${
BUILD_STATIC
:+
"--link-flags=-no-pie"
}
CFLAGS =
$CFLAGS
CXXFLAGS =
$CXXFLAGS
EXTRA_FLAGS = --verbose --target
$CTARGET
${
BUILD_STATIC
:+
"--link-flags=-no-pie"
}
LLVM_CONFIG = /usr/lib/llvm
$_llvmver
/bin/llvm-config
EOF
}
...
...
@@ -76,7 +74,7 @@ build() {
make crystal
\
CRYSTAL_CONFIG_PATH
=
"lib:/usr/lib/crystal"
\
PATH
=
"
$srcdir
/
$pkgname
-
$_bootver
-
$C
HOST
/bin:
$PATH
"
\
PATH
=
"
$srcdir
/
$pkgname
-
$_bootver
-
$C
BUILD
/bin:
$PATH
"
\
static
=
${
BUILD_STATIC
:-}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment