mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-15 19:06:19 +02:00
Compare commits
3 Commits
72b688f640
...
mr-origin-
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ef6da62956 | ||
![]() |
ad7dd50bf3 | ||
![]() |
5a381835e8 |
2
Makefile
2
Makefile
@@ -1,6 +1,6 @@
|
|||||||
SHELL=/bin/bash -o pipefail
|
SHELL=/bin/bash -o pipefail
|
||||||
|
|
||||||
V=1.3.2
|
V=1.4.0
|
||||||
BUILDTOOLVER ?= $(V)
|
BUILDTOOLVER ?= $(V)
|
||||||
|
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
@@ -1,4 +1,6 @@
|
|||||||
#!/hint/bash
|
#!/hint/bash
|
||||||
|
# shellcheck disable=2034
|
||||||
|
|
||||||
#
|
#
|
||||||
# /etc/makepkg.conf.d/fortran.conf
|
# /etc/makepkg.conf.d/fortran.conf
|
||||||
#
|
#
|
||||||
@@ -9,10 +11,12 @@
|
|||||||
|
|
||||||
# Flags used for the Fortran compiler, similar in spirit to CFLAGS. Read
|
# Flags used for the Fortran compiler, similar in spirit to CFLAGS. Read
|
||||||
# linkman:gfortran[1] for more details on the available flags.
|
# linkman:gfortran[1] for more details on the available flags.
|
||||||
#FFLAGS="-O2 -pipe"
|
FFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt \
|
||||||
#FCFLAGS="$FFLAGS"
|
-Wp,-D_FORTIFY_SOURCE=3 -fstack-clash-protection -fcf-protection \
|
||||||
|
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
|
||||||
|
FCFLAGS="$FFLAGS"
|
||||||
|
|
||||||
# Additional compiler flags appended to `FFLAGS` and `FCFLAGS` for use in debugging. Usually
|
# Additional compiler flags appended to `FFLAGS` and `FCFLAGS` for use in debugging. Usually
|
||||||
# this would include: ``-g''. Read linkman:gfortran[1] for more details on the wide
|
# this would include: ``-g''. Read linkman:gfortran[1] for more details on the wide
|
||||||
# variety of compiler flags available.
|
# variety of compiler flags available.
|
||||||
#DEBUG_FFLAGS="-g"
|
DEBUG_FFLAGS="-g"
|
||||||
|
@@ -94,19 +94,19 @@ pkgctl_license_check() {
|
|||||||
pushd "${path}" >/dev/null
|
pushd "${path}" >/dev/null
|
||||||
|
|
||||||
if [[ ! -f PKGBUILD ]]; then
|
if [[ ! -f PKGBUILD ]]; then
|
||||||
msg_error "${BOLD}${pkgbase}:${ALL_OFF} no PKGBUILD found"
|
msg_error "${BOLD}${path}:${ALL_OFF} no PKGBUILD found"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# reset common PKGBUILD variables
|
if [[ ! -f .SRCINFO ]]; then
|
||||||
unset pkgbase
|
msg_error "${BOLD}${path}:${ALL_OFF} no .SRCINFO found"
|
||||||
|
return 1
|
||||||
# shellcheck source=contrib/makepkg/PKGBUILD.proto
|
fi
|
||||||
if ! . ./PKGBUILD; then
|
|
||||||
msg_error "${BOLD}${pkgbase}:${ALL_OFF} failed to source PKGBUILD"
|
if ! pkgbase=$(grep --max-count=1 --extended-regexp "pkgbase = (.+)" .SRCINFO | awk '{print $3}'); then
|
||||||
|
msg_error "${BOLD}${path}:${ALL_OFF} pkgbase not found in .SRCINFO"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
pkgbase=${pkgbase:-$pkgname}
|
|
||||||
|
|
||||||
if [[ ! -e LICENSE ]]; then
|
if [[ ! -e LICENSE ]]; then
|
||||||
msg_error "${BOLD}${pkgbase}:${ALL_OFF} is missing the LICENSE file"
|
msg_error "${BOLD}${pkgbase}:${ALL_OFF} is missing the LICENSE file"
|
||||||
|
Reference in New Issue
Block a user