Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
525c7dd0ee
|
|||
744eb3ca96
|
|||
3dd3f806ef
|
|||
fa245021bf | |||
fd74b22bc2 | |||
538e5051e5 |
8
Makefile
8
Makefile
@@ -80,7 +80,7 @@ conf_base:
|
|||||||
|
|
||||||
conf_pkg:
|
conf_pkg:
|
||||||
@install -d $(BUILDDIR)/makepkg.conf.d $(BUILDDIR)/artools
|
@install -d $(BUILDDIR)/makepkg.conf.d $(BUILDDIR)/artools
|
||||||
@cp -a $(MAKEPKG_CONFIGS) $(BUILDDIR)/makepkg.conf.d
|
@cp -ra $(MAKEPKG_CONFIGS) $(BUILDDIR)/makepkg.conf.d
|
||||||
@cp -a $(TOOLS_CONFIGS_PKG) $(BUILDDIR)/artools
|
@cp -a $(TOOLS_CONFIGS_PKG) $(BUILDDIR)/artools
|
||||||
|
|
||||||
conf_iso:
|
conf_iso:
|
||||||
@@ -111,7 +111,8 @@ install_pkg: binprogs_pkg
|
|||||||
|
|
||||||
for conf in $(notdir $(TOOLS_CONFIGS_PKG)); do install -Dm0644 $(BUILDDIR)/$(TOOLS)/$$conf $(DESTDIR)$(SYSCONFDIR)/$(TOOLS)/$${conf##*/}; done
|
for conf in $(notdir $(TOOLS_CONFIGS_PKG)); do install -Dm0644 $(BUILDDIR)/$(TOOLS)/$$conf $(DESTDIR)$(SYSCONFDIR)/$(TOOLS)/$${conf##*/}; done
|
||||||
|
|
||||||
for conf in $(notdir $(MAKEPKG_CONFIGS)); do install -Dm0644 $(BUILDDIR)/makepkg.conf.d/$$conf $(DESTDIR)$(DATADIR)/makepkg.conf.d/$${conf##*/}; done
|
cp -ra $(BUILDDIR)/makepkg.conf.d -t $(DESTDIR)$(DATADIR)
|
||||||
|
|
||||||
for a in $(SETARCH_ALIASES); do install -m0644 $$a -t $(DESTDIR)$(DATADIR)/setarch-aliases.d; done
|
for a in $(SETARCH_ALIASES); do install -m0644 $$a -t $(DESTDIR)$(DATADIR)/setarch-aliases.d; done
|
||||||
ln -sf find-libdeps $(DESTDIR)$(PREFIX)/bin/find-libprovides
|
ln -sf find-libdeps $(DESTDIR)$(PREFIX)/bin/find-libprovides
|
||||||
|
|
||||||
@@ -134,13 +135,12 @@ uninstall:
|
|||||||
for f in $(notdir $(LIBRARY)); do rm -f $(DESTDIR)$(DATADIR)/lib/$$f; done
|
for f in $(notdir $(LIBRARY)); do rm -f $(DESTDIR)$(DATADIR)/lib/$$f; done
|
||||||
rm -rf $(DESTDIR)$(DATADIR)/lib
|
rm -rf $(DESTDIR)$(DATADIR)/lib
|
||||||
for conf in $(notdir $(TOOLS_CONFIGS)); do rm -f $(DESTDIR)$(SYSCONFDIR)/$(TOOLS)/$${conf##*/}; done
|
for conf in $(notdir $(TOOLS_CONFIGS)); do rm -f $(DESTDIR)$(SYSCONFDIR)/$(TOOLS)/$${conf##*/}; done
|
||||||
for conf in $(notdir $(MAKEPKG_CONFIGS)); do rm -f $(DESTDIR)$(DATADIR)/makepkg.conf.d/$${conf##*/}; done
|
rm -rf $(DESTDIR)$(DATADIR)/makepkg.conf.d
|
||||||
for conf in $(notdir $(PACMAN_CONFIGS)); do rm -f $(DESTDIR)$(DATADIR)/pacman.conf.d/$${conf##*/}; done
|
for conf in $(notdir $(PACMAN_CONFIGS)); do rm -f $(DESTDIR)$(DATADIR)/pacman.conf.d/$${conf##*/}; done
|
||||||
for f in $(notdir $(SETARCH_ALIASES)); do rm -f $(DESTDIR)$(DATADIR)/setarch-aliases.d/$$f; done
|
for f in $(notdir $(SETARCH_ALIASES)); do rm -f $(DESTDIR)$(DATADIR)/setarch-aliases.d/$$f; done
|
||||||
rm -f $(DESTDIR)$(PREFIX)/bin/find-libprovides
|
rm -f $(DESTDIR)$(PREFIX)/bin/find-libprovides
|
||||||
rmdir --ignore-fail-on-non-empty \
|
rmdir --ignore-fail-on-non-empty \
|
||||||
$(DESTDIR)$(DATADIR)/setarch-aliases.d \
|
$(DESTDIR)$(DATADIR)/setarch-aliases.d \
|
||||||
$(DESTDIR)$(DATADIR)/makepkg.conf.d \
|
|
||||||
$(DESTDIR)$(DATADIR)/pacman.conf.d \
|
$(DESTDIR)$(DATADIR)/pacman.conf.d \
|
||||||
$(DESTDIR)$(DATADIR) \
|
$(DESTDIR)$(DATADIR) \
|
||||||
$(DESTDIR)$(SYSCONFDIR)/$(TOOLS)
|
$(DESTDIR)$(SYSCONFDIR)/$(TOOLS)
|
||||||
|
18
config/makepkg/conf.d/fortran.conf
Normal file
18
config/makepkg/conf.d/fortran.conf
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/hint/bash
|
||||||
|
#
|
||||||
|
# /etc/makepkg.conf.d/fortran.conf
|
||||||
|
#
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# FORTRAN LANGUAGE SUPPORT
|
||||||
|
#########################################################################
|
||||||
|
|
||||||
|
# Flags used for the Fortran compiler, similar in spirit to CFLAGS. Read
|
||||||
|
# linkman:gfortran[1] for more details on the available flags.
|
||||||
|
#FFLAGS="-O2 -pipe"
|
||||||
|
#FCFLAGS="$FFLAGS"
|
||||||
|
|
||||||
|
# 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
|
||||||
|
# variety of compiler flags available.
|
||||||
|
#DEBUG_FFLAGS="-g"
|
19
config/makepkg/conf.d/rust.conf
Normal file
19
config/makepkg/conf.d/rust.conf
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/hint/bash
|
||||||
|
# shellcheck disable=2034
|
||||||
|
|
||||||
|
#
|
||||||
|
# /etc/makepkg.conf.d/rust.conf
|
||||||
|
#
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# RUST LANGUAGE SUPPORT
|
||||||
|
#########################################################################
|
||||||
|
|
||||||
|
# Flags used for the Rust compiler, similar in spirit to CFLAGS. Read
|
||||||
|
# linkman:rustc[1] for more details on the available flags.
|
||||||
|
RUSTFLAGS="-Cforce-frame-pointers=yes"
|
||||||
|
|
||||||
|
# Additional compiler flags appended to `RUSTFLAGS` for use in debugging.
|
||||||
|
# Usually this would include: ``-C debuginfo=2''. Read linkman:rustc[1] for
|
||||||
|
# more details on the available flags.
|
||||||
|
DEBUG_RUSTFLAGS="-C debuginfo=2"
|
@@ -43,17 +43,16 @@ CHOST="x86_64-pc-linux-gnu"
|
|||||||
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
|
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
|
||||||
-Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \
|
-Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \
|
||||||
-fstack-clash-protection -fcf-protection"
|
-fstack-clash-protection -fcf-protection"
|
||||||
|
# -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
|
||||||
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
|
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
|
||||||
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
|
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
|
||||||
-Wl,-z,pack-relative-relocs"
|
-Wl,-z,pack-relative-relocs"
|
||||||
LTOFLAGS="-flto=auto"
|
LTOFLAGS="-flto=auto"
|
||||||
RUSTFLAGS=""
|
|
||||||
#-- Make Flags: change this for DistCC/SMP systems
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
#MAKEFLAGS="-j2"
|
#MAKEFLAGS="-j2"
|
||||||
#-- Debugging flags
|
#-- Debugging flags
|
||||||
DEBUG_CFLAGS="-g"
|
DEBUG_CFLAGS="-g"
|
||||||
DEBUG_CXXFLAGS="$DEBUG_CFLAGS"
|
DEBUG_CXXFLAGS="$DEBUG_CFLAGS"
|
||||||
DEBUG_RUSTFLAGS="-C debuginfo=2"
|
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
# BUILD ENVIRONMENT
|
# BUILD ENVIRONMENT
|
||||||
@@ -82,7 +81,7 @@ BUILDENV=(!distcc color !ccache check !sign)
|
|||||||
# These are default values for the options=() settings
|
# These are default values for the options=() settings
|
||||||
#########################################################################
|
#########################################################################
|
||||||
#
|
#
|
||||||
# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto)
|
# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto !autodeps)
|
||||||
# A negated option will do the opposite of the comments below.
|
# A negated option will do the opposite of the comments below.
|
||||||
#
|
#
|
||||||
#-- strip: Strip symbols from binaries/libraries
|
#-- strip: Strip symbols from binaries/libraries
|
||||||
@@ -94,6 +93,7 @@ BUILDENV=(!distcc color !ccache check !sign)
|
|||||||
#-- purge: Remove files specified by PURGE_TARGETS
|
#-- purge: Remove files specified by PURGE_TARGETS
|
||||||
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||||
#-- lto: Add compile flags for building with link time optimization
|
#-- lto: Add compile flags for building with link time optimization
|
||||||
|
#-- autodeps: Automatically add depends/provides
|
||||||
#
|
#
|
||||||
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
|
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
|
||||||
|
|
||||||
@@ -113,6 +113,8 @@ DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
|
|||||||
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
|
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
|
||||||
#-- Directory to store source code in for debug packages
|
#-- Directory to store source code in for debug packages
|
||||||
DBGSRCDIR="/usr/src/debug"
|
DBGSRCDIR="/usr/src/debug"
|
||||||
|
#-- Prefix and directories for library autodeps
|
||||||
|
LIB_DIRS=('lib:usr/lib' 'lib32:usr/lib32')
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
# PACKAGE OUTPUT
|
# PACKAGE OUTPUT
|
||||||
|
1
config/makepkg/x86_64.conf.d/fortran.conf
Symbolic link
1
config/makepkg/x86_64.conf.d/fortran.conf
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../conf.d/fortran.conf
|
1
config/makepkg/x86_64.conf.d/rust.conf
Symbolic link
1
config/makepkg/x86_64.conf.d/rust.conf
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../conf.d/rust.conf
|
@@ -36,6 +36,8 @@ NoProgressBar
|
|||||||
#CheckSpace
|
#CheckSpace
|
||||||
VerbosePkgLists
|
VerbosePkgLists
|
||||||
ParallelDownloads = 5
|
ParallelDownloads = 5
|
||||||
|
DownloadUser = alpm
|
||||||
|
#DisableSandbox
|
||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
|
@@ -36,6 +36,8 @@ NoProgressBar
|
|||||||
#CheckSpace
|
#CheckSpace
|
||||||
VerbosePkgLists
|
VerbosePkgLists
|
||||||
ParallelDownloads = 5
|
ParallelDownloads = 5
|
||||||
|
DownloadUser = alpm
|
||||||
|
#DisableSandbox
|
||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
|
@@ -36,6 +36,8 @@ NoProgressBar
|
|||||||
#CheckSpace
|
#CheckSpace
|
||||||
VerbosePkgLists
|
VerbosePkgLists
|
||||||
ParallelDownloads = 5
|
ParallelDownloads = 5
|
||||||
|
DownloadUser = alpm
|
||||||
|
#DisableSandbox
|
||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
|
@@ -35,6 +35,8 @@ Color
|
|||||||
CheckSpace
|
CheckSpace
|
||||||
VerbosePkgLists
|
VerbosePkgLists
|
||||||
ParallelDownloads = 10
|
ParallelDownloads = 10
|
||||||
|
DownloadUser = alpm
|
||||||
|
#DisableSandbox
|
||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
|
@@ -35,6 +35,8 @@ Color
|
|||||||
CheckSpace
|
CheckSpace
|
||||||
VerbosePkgLists
|
VerbosePkgLists
|
||||||
ParallelDownloads = 10
|
ParallelDownloads = 10
|
||||||
|
DownloadUser = alpm
|
||||||
|
#DisableSandbox
|
||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
|
@@ -35,6 +35,8 @@ Color
|
|||||||
CheckSpace
|
CheckSpace
|
||||||
VerbosePkgLists
|
VerbosePkgLists
|
||||||
ParallelDownloads = 10
|
ParallelDownloads = 10
|
||||||
|
DownloadUser = alpm
|
||||||
|
#DisableSandbox
|
||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
|
@@ -36,6 +36,8 @@ NoProgressBar
|
|||||||
#CheckSpace
|
#CheckSpace
|
||||||
VerbosePkgLists
|
VerbosePkgLists
|
||||||
ParallelDownloads = 5
|
ParallelDownloads = 5
|
||||||
|
DownloadUser = alpm
|
||||||
|
#DisableSandbox
|
||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
|
@@ -36,6 +36,8 @@ NoProgressBar
|
|||||||
#CheckSpace
|
#CheckSpace
|
||||||
VerbosePkgLists
|
VerbosePkgLists
|
||||||
ParallelDownloads = 5
|
ParallelDownloads = 5
|
||||||
|
DownloadUser = alpm
|
||||||
|
#DisableSandbox
|
||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
|
@@ -36,6 +36,8 @@ NoProgressBar
|
|||||||
#CheckSpace
|
#CheckSpace
|
||||||
VerbosePkgLists
|
VerbosePkgLists
|
||||||
ParallelDownloads = 5
|
ParallelDownloads = 5
|
||||||
|
DownloadUser = alpm
|
||||||
|
#DisableSandbox
|
||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
|
@@ -36,6 +36,8 @@ NoProgressBar
|
|||||||
#CheckSpace
|
#CheckSpace
|
||||||
VerbosePkgLists
|
VerbosePkgLists
|
||||||
ParallelDownloads = 5
|
ParallelDownloads = 5
|
||||||
|
DownloadUser = alpm
|
||||||
|
#DisableSandbox
|
||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
|
@@ -36,6 +36,8 @@ NoProgressBar
|
|||||||
#CheckSpace
|
#CheckSpace
|
||||||
VerbosePkgLists
|
VerbosePkgLists
|
||||||
ParallelDownloads = 5
|
ParallelDownloads = 5
|
||||||
|
DownloadUser = alpm
|
||||||
|
#DisableSandbox
|
||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
|
@@ -36,6 +36,8 @@ NoProgressBar
|
|||||||
#CheckSpace
|
#CheckSpace
|
||||||
VerbosePkgLists
|
VerbosePkgLists
|
||||||
ParallelDownloads = 5
|
ParallelDownloads = 5
|
||||||
|
DownloadUser = alpm
|
||||||
|
#DisableSandbox
|
||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
|
@@ -36,6 +36,8 @@ NoProgressBar
|
|||||||
#CheckSpace
|
#CheckSpace
|
||||||
VerbosePkgLists
|
VerbosePkgLists
|
||||||
ParallelDownloads = 5
|
ParallelDownloads = 5
|
||||||
|
DownloadUser = alpm
|
||||||
|
#DisableSandbox
|
||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
|
@@ -36,6 +36,8 @@ NoProgressBar
|
|||||||
#CheckSpace
|
#CheckSpace
|
||||||
VerbosePkgLists
|
VerbosePkgLists
|
||||||
ParallelDownloads = 5
|
ParallelDownloads = 5
|
||||||
|
DownloadUser = alpm
|
||||||
|
#DisableSandbox
|
||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
|
@@ -36,6 +36,8 @@ NoProgressBar
|
|||||||
#CheckSpace
|
#CheckSpace
|
||||||
VerbosePkgLists
|
VerbosePkgLists
|
||||||
ParallelDownloads = 5
|
ParallelDownloads = 5
|
||||||
|
DownloadUser = alpm
|
||||||
|
#DisableSandbox
|
||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
|
@@ -5,8 +5,6 @@
|
|||||||
[[ -z ${ARTOOLS_INCLUDE_ADMIN_MAINTAINER_SH:-} ]] || return 0
|
[[ -z ${ARTOOLS_INCLUDE_ADMIN_MAINTAINER_SH:-} ]] || return 0
|
||||||
ARTOOLS_INCLUDE_ADMIN_MAINTAINER_SH=1
|
ARTOOLS_INCLUDE_ADMIN_MAINTAINER_SH=1
|
||||||
|
|
||||||
# shellcheck source=src/lib/pkg/packager.sh
|
|
||||||
source "${LIBDIR}"/pkg/packager.sh
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@@ -81,7 +79,9 @@ artixpkg_admin_maintainer() {
|
|||||||
|
|
||||||
pkgbases+=("$@")
|
pkgbases+=("$@")
|
||||||
|
|
||||||
load_makepkg_config
|
# shellcheck source=src/lib/pkg/packager.sh
|
||||||
|
source "${LIBDIR}"/pkg/packager.sh
|
||||||
|
|
||||||
if [[ -n ${PACKAGER} ]]; then
|
if [[ -n ${PACKAGER} ]]; then
|
||||||
if ! packager_name=$(get_packager_name "${PACKAGER}") || \
|
if ! packager_name=$(get_packager_name "${PACKAGER}") || \
|
||||||
! packager_email=$(get_packager_email "${PACKAGER}"); then
|
! packager_email=$(get_packager_email "${PACKAGER}"); then
|
||||||
@@ -90,9 +90,11 @@ artixpkg_admin_maintainer() {
|
|||||||
if ! is_packager_name_valid "${packager_name}"; then
|
if ! is_packager_name_valid "${packager_name}"; then
|
||||||
die "invalid PACKAGER '${PACKAGER}' in makepkg.conf"
|
die "invalid PACKAGER '${PACKAGER}' in makepkg.conf"
|
||||||
fi
|
fi
|
||||||
|
if is_packager_email_official "${packager_email}"; then
|
||||||
|
maintainer="maintainer-${packager_name}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
maintainer="maintainer-${packager_name}"
|
|
||||||
|
|
||||||
if [[ -n ${GIT_TOKEN} ]]; then
|
if [[ -n ${GIT_TOKEN} ]]; then
|
||||||
|
|
||||||
|
@@ -5,9 +5,6 @@
|
|||||||
[[ -z ${ARTOOLS_INCLUDE_GIT_CONFIG_SH:-} ]] || return 0
|
[[ -z ${ARTOOLS_INCLUDE_GIT_CONFIG_SH:-} ]] || return 0
|
||||||
ARTOOLS_INCLUDE_GIT_CONFIG_SH=1
|
ARTOOLS_INCLUDE_GIT_CONFIG_SH=1
|
||||||
|
|
||||||
# shellcheck source=src/lib/pkg/packager.sh
|
|
||||||
source "${LIBDIR}"/pkg/packager.sh
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
||||||
@@ -91,8 +88,10 @@ artixpkg_git_config() {
|
|||||||
|
|
||||||
# Load makepkg.conf variables to be available for packager identity
|
# Load makepkg.conf variables to be available for packager identity
|
||||||
msg "Collecting packager identity from makepkg.conf"
|
msg "Collecting packager identity from makepkg.conf"
|
||||||
# shellcheck source=config/makepkg/x86_64.conf
|
|
||||||
load_makepkg_config
|
# shellcheck source=src/lib/pkg/packager.sh
|
||||||
|
source "${LIBDIR}"/pkg/packager.sh
|
||||||
|
|
||||||
if [[ -n ${PACKAGER} ]]; then
|
if [[ -n ${PACKAGER} ]]; then
|
||||||
if ! packager_name=$(get_packager_name "${PACKAGER}") || \
|
if ! packager_name=$(get_packager_name "${PACKAGER}") || \
|
||||||
! packager_email=$(get_packager_email "${PACKAGER}"); then
|
! packager_email=$(get_packager_email "${PACKAGER}"); then
|
||||||
|
@@ -49,3 +49,6 @@ is_packager_email_official() {
|
|||||||
fi
|
fi
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# shellcheck source=config/makepkg/x86_64.conf
|
||||||
|
load_makepkg_config
|
||||||
|
@@ -11,6 +11,8 @@ source "${LIBDIR}"/pkg/db/db.sh
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
||||||
|
load_makepkg_config
|
||||||
|
|
||||||
has_remote_changes() {
|
has_remote_changes() {
|
||||||
local status
|
local status
|
||||||
msg "Checking for remote changes ..."
|
msg "Checking for remote changes ..."
|
||||||
|
@@ -9,6 +9,12 @@ set -e
|
|||||||
|
|
||||||
PATCHDIR=${PATCHDIR:-"${WORKSPACE_DIR}/artix-patches"}
|
PATCHDIR=${PATCHDIR:-"${WORKSPACE_DIR}/artix-patches"}
|
||||||
|
|
||||||
|
declare -A arch_map=(
|
||||||
|
["archlinux-mirrorlist"]="pacman-mirrorlist"
|
||||||
|
["artix-rebuild-order"]="arch-rebuild-order"
|
||||||
|
["virtualbox-host-modules-artix"]="virtualbox-host-modules-arch"
|
||||||
|
)
|
||||||
|
|
||||||
update_patches(){
|
update_patches(){
|
||||||
if [[ ! -d "${PATCHDIR}" ]]; then
|
if [[ ! -d "${PATCHDIR}" ]]; then
|
||||||
# ${GIT_ORG}
|
# ${GIT_ORG}
|
||||||
@@ -67,12 +73,14 @@ artixpkg_repo_import_usage() {
|
|||||||
OPTIONS
|
OPTIONS
|
||||||
--tag TAG Switch the current workspace to a specified version tag
|
--tag TAG Switch the current workspace to a specified version tag
|
||||||
--del Delete files before rsync import
|
--del Delete files before rsync import
|
||||||
|
-n --no-patch No patch import
|
||||||
-h, --help Show this help text
|
-h, --help Show this help text
|
||||||
|
|
||||||
EXAMPLES
|
EXAMPLES
|
||||||
$ ${COMMAND} libfoo
|
$ ${COMMAND} libfoo
|
||||||
$ ${COMMAND} --tag TAG libfoo
|
$ ${COMMAND} --tag TAG libfoo
|
||||||
$ ${COMMAND} --tag TAG --del libfoo
|
$ ${COMMAND} --tag TAG --del libfoo
|
||||||
|
$ ${COMMAND} --no-patch libfoo
|
||||||
_EOF_
|
_EOF_
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,6 +94,7 @@ artixpkg_repo_import() {
|
|||||||
local pkgbases=()
|
local pkgbases=()
|
||||||
local pkgbase
|
local pkgbase
|
||||||
local TAG
|
local TAG
|
||||||
|
local NP=0
|
||||||
local rsync_args=()
|
local rsync_args=()
|
||||||
rsync_args+=(
|
rsync_args+=(
|
||||||
-axcihW
|
-axcihW
|
||||||
@@ -116,6 +125,10 @@ artixpkg_repo_import() {
|
|||||||
rsync_args+=(--delete-before)
|
rsync_args+=(--delete-before)
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
-n|--no-patch)
|
||||||
|
NP=1
|
||||||
|
shift
|
||||||
|
;;
|
||||||
-h|--help)
|
-h|--help)
|
||||||
artixpkg_repo_import_usage
|
artixpkg_repo_import_usage
|
||||||
exit 0
|
exit 0
|
||||||
@@ -143,9 +156,11 @@ artixpkg_repo_import() {
|
|||||||
fi
|
fi
|
||||||
( cd "${pkgbase}" || return
|
( cd "${pkgbase}" || return
|
||||||
|
|
||||||
|
upstream="${arch_map["$pkgbase"]:-$pkgbase}"
|
||||||
|
|
||||||
stat_busy "Checking for upstream url"
|
stat_busy "Checking for upstream url"
|
||||||
if ! git config --local --get remote.upstream.url &>/dev/null; then
|
if ! git config --local --get remote.upstream.url &>/dev/null; then
|
||||||
git remote add upstream "${GIT_UPSTREAM_URL}/${pkgbase}".git
|
git remote add upstream "${GIT_UPSTREAM_URL}/${upstream}".git
|
||||||
fi
|
fi
|
||||||
stat_done
|
stat_done
|
||||||
|
|
||||||
@@ -176,8 +191,10 @@ artixpkg_repo_import() {
|
|||||||
msg "Importing upstream changeset for ${version}"
|
msg "Importing upstream changeset for ${version}"
|
||||||
rsync "${rsync_args[@]}" "${temp}"/ "$(pwd)"/ #&>/dev/null
|
rsync "${rsync_args[@]}" "${temp}"/ "$(pwd)"/ #&>/dev/null
|
||||||
|
|
||||||
msg2 "Patching ${pkgbase} ..."
|
if ! (( NP )); then
|
||||||
patch_pkgbase "${pkgbase}"
|
msg2 "Patching ${pkgbase} ..."
|
||||||
|
patch_pkgbase "${pkgbase}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
@@ -41,8 +41,6 @@ export _ARTOOLS_COMMAND='artixpkg'
|
|||||||
# shellcheck source=src/lib/pkg/util.sh
|
# shellcheck source=src/lib/pkg/util.sh
|
||||||
source "${LIBDIR}"/pkg/util.sh
|
source "${LIBDIR}"/pkg/util.sh
|
||||||
|
|
||||||
load_makepkg_config
|
|
||||||
|
|
||||||
cd "${TREE_DIR_ARTIX}"
|
cd "${TREE_DIR_ARTIX}"
|
||||||
|
|
||||||
# command checking
|
# command checking
|
||||||
|
@@ -9,8 +9,6 @@ source "${LIBDIR}"/base/message.sh
|
|||||||
# shellcheck source=src/lib/pkg/diff.sh
|
# shellcheck source=src/lib/pkg/diff.sh
|
||||||
source "${LIBDIR}"/pkg/diff.sh
|
source "${LIBDIR}"/pkg/diff.sh
|
||||||
|
|
||||||
load_makepkg_config
|
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
cat <<- _EOF_
|
cat <<- _EOF_
|
||||||
Usage: ${BASH_SOURCE[0]##*/} [OPTIONS]
|
Usage: ${BASH_SOURCE[0]##*/} [OPTIONS]
|
||||||
|
Reference in New Issue
Block a user