summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans-Nikolai Viessmann2022-11-29 12:00:48 +0100
committerHans-Nikolai Viessmann2022-11-29 12:00:48 +0100
commite85c6a088d2884c544be0b9b6fad87c0ba4187db (patch)
treed14a361e0c2c2a3f53c7a252b962d99620decf93
parent5eb831b4e40ea10bf2d44f6ac726aa9053087a68 (diff)
downloadaur-e85c6a088d2884c544be0b9b6fad87c0ba4187db.tar.gz
switch to fork (development)
I've created a fork of the original texlive-localmanager by Rémy Oudompheng (see https://gitlab.archlinux.org/remy/texlive-localmanager.git) which includes all of the previously applied patches (thank you to all contributors over the years!) with also a few new improvements in the works. As such, the '-git' release should be considered beta and only used for latest features and such. From now a stable versioned release is available at: https://aur.archlinux.org/packages/tllocalmgr.
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD67
-rw-r--r--tllocalmgr-2022.patch13
-rw-r--r--tllocalmgr-better-conflicts.patch21
-rw-r--r--tllocalmgr-enhance.patch58
-rw-r--r--tllocalmgr-fix-texlive-local-match.patch13
-rw-r--r--tllocalmgr-mirror-opt.patch13
-rw-r--r--tllocalmgr-pkgs-nicer-error.patch39
8 files changed, 19 insertions, 229 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f75792c921e7..17ac76937534 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,34 +1,22 @@
pkgbase = tllocalmgr-git
pkgdesc = A shell and command-line utility to manage TeXLive on Arch Linux
- pkgver = r84.bbd8488
- pkgrel = 5
- url = https://gitlab.archlinux.org/remy/texlive-localmanager.git
+ pkgver = v0.8.r1.322dabe
+ pkgrel = 1
+ url = https://github.com/hv15/tllocalmgr
arch = any
license = GPL
makedepends = git
depends = texlive-core>=2016
- depends = texlive-core<2023
depends = perl-libwww
depends = perl-term-shellui
depends = perl-term-readline-gnu
depends = perl-list-moreutils
depends = perl-lwp-protocol-https
- provides = texlive-localmanager=r84.bbd8488
+ provides = texlive-localmanager=v0.8.r1.322dabe
conflicts = texlive-localmanager
conflicts = texlive-localmanager-git
- source = texlive-localmanager::git+https://gitlab.archlinux.org/remy/texlive-localmanager.git
- source = tllocalmgr-2022.patch
- source = tllocalmgr-enhance.patch
- source = tllocalmgr-fix-texlive-local-match.patch
- source = tllocalmgr-pkgs-nicer-error.patch
- source = tllocalmgr-mirror-opt.patch
- source = tllocalmgr-better-conflicts.patch
+ conflicts = tllocalmgr
+ source = tllocalmgr::git+https://github.com/hv15/tllocalmgr.git
sha256sums = SKIP
- sha256sums = 7eb0982890b2d4de29d391db59dd4a8c6308bca2327433f08da265bf69ca71ca
- sha256sums = 22222ff329919ee6a16ffd489b0213b14f8169d9daf6ef1a82aa5ab37538c236
- sha256sums = a7698d0076f4e1a7ef401899c174ed9a290674a7e89e9c818ba078e17548c6e7
- sha256sums = 23f103c606eb595d8c114aee2ca3006a09588370087b959419f86a4a8ce25a43
- sha256sums = d7064657f6336bed7be230fc05df800e6bdcee31d10c718b4b9b1b55f7f26c8a
- sha256sums = 380cdb0dd8531dcab13b8da70506214bccb7252ddd19ad50a5be25fac3b39ea2
pkgname = tllocalmgr-git
diff --git a/PKGBUILD b/PKGBUILD
index 710cfc2d6ac3..a63958fdba65 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,18 +5,17 @@
# Contributor: Firmicus <francois . archlinux . org>
pkgname=tllocalmgr-git
-_pkgname='texlive-localmanager'
-pkgver=r84.bbd8488
-pkgrel=5
+pkgver=v0.8.r1.322dabe
+pkgrel=1
pkgdesc='A shell and command-line utility to manage TeXLive on Arch Linux'
arch=('any')
-url='https://gitlab.archlinux.org/remy/texlive-localmanager.git'
+url='https://github.com/hv15/tllocalmgr'
license=('GPL')
provides=("texlive-localmanager=$pkgver")
conflicts=('texlive-localmanager'
- 'texlive-localmanager-git')
+ 'texlive-localmanager-git'
+ "${pkgname%-git}")
depends=('texlive-core>=2016'
- 'texlive-core<2023'
'perl-libwww'
'perl-term-shellui'
'perl-term-readline-gnu'
@@ -24,60 +23,20 @@ depends=('texlive-core>=2016'
'perl-lwp-protocol-https')
makedepends=('git')
-source=("${_pkgname}::git+https://gitlab.archlinux.org/remy/texlive-localmanager.git"
- 'tllocalmgr-2022.patch'
- 'tllocalmgr-enhance.patch'
- 'tllocalmgr-fix-texlive-local-match.patch'
- 'tllocalmgr-pkgs-nicer-error.patch'
- 'tllocalmgr-mirror-opt.patch'
- 'tllocalmgr-better-conflicts.patch')
-sha256sums=('SKIP'
- '7eb0982890b2d4de29d391db59dd4a8c6308bca2327433f08da265bf69ca71ca'
- '22222ff329919ee6a16ffd489b0213b14f8169d9daf6ef1a82aa5ab37538c236'
- 'a7698d0076f4e1a7ef401899c174ed9a290674a7e89e9c818ba078e17548c6e7'
- '23f103c606eb595d8c114aee2ca3006a09588370087b959419f86a4a8ce25a43'
- 'd7064657f6336bed7be230fc05df800e6bdcee31d10c718b4b9b1b55f7f26c8a'
- '380cdb0dd8531dcab13b8da70506214bccb7252ddd19ad50a5be25fac3b39ea2')
+source=("${pkgname%-git}::git+https://github.com/hv15/${pkgname%-git}.git")
+sha256sums=('SKIP')
pkgver() {
- cd "$_pkgname"
- ( set -o pipefail
- git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
- )
-}
-
-prepare() {
- cd "$_pkgname"
-
- # update to handle texlive-2022 releases
- patch -p1 < "$srcdir/tllocalmgr-2022.patch"
-
- # enhances the tllocalmgr script a bit
- # thanks: @sharethewisdom and @cobaltspace
- patch -p1 < "$srcdir/tllocalmgr-enhance.patch"
-
- # fix missing exclusion of matches for texlive local packages
- # thanks: @CaptainBern
- patch -p1 < "$srcdir/tllocalmgr-fix-texlive-local-match.patch"
-
- # make error on missing 'pkgs' file non-fatal, improve error msg
- patch -p1 < "$srcdir/tllocalmgr-pkgs-nicer-error.patch"
-
- # correctly pass --mirror option
- patch -p1 < "$srcdir/tllocalmgr-mirror-opt.patch"
-
- # some CTAN packages are not in any texlive collection, so there is
- # no need to set a conflict within PKGBUILD
- patch -p1 < "$srcdir/tllocalmgr-better-conflicts.patch"
+ cd "${pkgname%-git}"
+ printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
package() {
- cd "$_pkgname"
- install -d "$pkgdir/usr/"{bin,share/texmf/arch/tlpkg/TeXLive}
+ cd "${pkgname%-git}"
+ install -d "$pkgdir/usr/"{bin,share/tllmgr/TLLocalMgr}
install -m755 tllocalmgr "$pkgdir/usr/bin/"
- cd tlpkg/TeXLive
+ cd tllmgr/TLLocalMgr
for _f in *; do
- install -m644 "$_f" "$pkgdir/usr/share/texmf/arch/tlpkg/TeXLive/"
+ install -m644 "$_f" "$pkgdir/usr/share/tllmgr/TLLocalMgr/"
done
}
diff --git a/tllocalmgr-2022.patch b/tllocalmgr-2022.patch
deleted file mode 100644
index 92af3ec1a54e..000000000000
--- a/tllocalmgr-2022.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/tlpkg/TeXLive/TLConfig.pm b/tlpkg/TeXLive/TLConfig.pm
-index e27f70b..b6e5101 100644
---- a/tlpkg/TeXLive/TLConfig.pm
-+++ b/tlpkg/TeXLive/TLConfig.pm
-@@ -57,7 +57,7 @@ BEGIN {
-
- # the year of our release, will be used in the location of the
- # network packages, and in menu names, and other places.
--$ReleaseYear = 2019;
-+$ReleaseYear = 2022;
-
- # users can upgrade from this year to the current year; might be the
- # same as the release year, or any number of releases earlier.
diff --git a/tllocalmgr-better-conflicts.patch b/tllocalmgr-better-conflicts.patch
deleted file mode 100644
index 293c898c319e..000000000000
--- a/tllocalmgr-better-conflicts.patch
+++ /dev/null
@@ -1,21 +0,0 @@
---- a/tllocalmgr 2022-04-30 12:51:53.267184213 +0200
-+++ b/tllocalmgr 2022-04-30 12:54:50.636930181 +0200
-@@ -639,6 +639,9 @@
- open PKGBUILD, "> $ROOT/builds/$pkg/PKGBUILD";
- my $newver = $tlpkg->revision;
- my $col = $collectionsbypkg{$pkg};
-+ my $conflict = (defined $col and $col ne '')
-+ ? "conflicts=('texlive-$col>=$YEAR.$newver')"
-+ : "conflicts=()";
- my $pkgsha512 = $tlpkg->containerchecksum;
- #TODO download it first and compare the checksum
- # if it differs ask the user if the PKGBUILD
-@@ -653,7 +656,7 @@
- arch=('any')
- groups=('texlive-local')
- depends=('texlive-core')
--conflicts=('texlive-$col>=$YEAR.$newver')
-+$conflict
- url='http://tug.org/texlive/'
- source=('$TLARCHIVE/$pkg.tar.xz')
- sha512sums=($pkgsha512)
diff --git a/tllocalmgr-enhance.patch b/tllocalmgr-enhance.patch
deleted file mode 100644
index a949ea909313..000000000000
--- a/tllocalmgr-enhance.patch
+++ /dev/null
@@ -1,58 +0,0 @@
-diff --git a/tllocalmgr b/tllocalmgr
-index b947ed2..e238263 100755
---- a/tllocalmgr
-+++ b/tllocalmgr
-@@ -227,6 +227,7 @@ my @updatedpkgs; # pkgs for which updates are available
- foreach my $col (sort keys %installedcol_versions) {
- #my $installedver = `pacman -Q texlive-$col`;
- #$installedver =~ s/texlive-$col $YEAR\.([0-9]+)-.+/$1/;
-+ next if ( $col eq "tlpdb" ) ;
- next unless ( $installedcol_versions{$col} < $versions{$col} ) ;
- foreach my $pkg (sort @{$tlpackages{$col}}) {
- my $tlpkg = $tlpdb->get_package($pkg);
-@@ -636,6 +637,7 @@ pkgrel=1
- pkgdesc="TeX Live - local installation of CTAN package $pkg"
- license=('GPL')
- arch=('any')
-+groups=('texlive-local')
- depends=('texlive-core')
- conflicts=('texlive-$col>=$YEAR.$newver')
- url='http://tug.org/texlive/'
-@@ -670,11 +672,12 @@ EOF
- # open INSTALL, "> $ROOT/builds/$pkg/texlive.install";
- # print INSTALL $TLINSTALL;
- # close INSTALL;
-- print LOG "* Running makepkg -ci on $ROOT/builds/$pkg/PKGBUILD\n";
-+ system( "makepkg --printsrcinfo > .SRCINFO" );
-+ print LOG "* Running makepkg -i on $ROOT/builds/$pkg/PKGBUILD\n";
- chdir "$ROOT/builds/$pkg";
- system( "test -f $pkg.tar.xz && rm $pkg.tar.xz" );
- # TODO : catch error if makepkg fails
-- system( "makepkg -ci" );
-+ system( "makepkg -i" );
- }
-
- print "\n>>> Finished. Don't forget to run 'texhash' to update your file database.\n";
-@@ -729,6 +732,7 @@ pkgrel=1
- pkgdesc="TeX Live - local installation of CTAN package $pkg (documentation and sources)"
- license=('GPL')
- arch=('any')
-+groups=('texlive-local')
- depends=('texlive-core')
- url='http://tug.org/texlive/'
- EOF
-@@ -773,11 +777,12 @@ EOF
- # open INSTALL, "> $ROOT/builds/$pkg/texlive.install";
- # print INSTALL $TLINSTALL;
- # close INSTALL;
-- print LOG "* Running makepkg -ci on $ROOT/builds/$pkg-doc/PKGBUILD\n";
-+ system( "makepkg --printsrcinfo > .SRCINFO" );
-+ print LOG "* Running makepkg -i on $ROOT/builds/$pkg-doc/PKGBUILD\n";
- chdir "$ROOT/builds/$pkg-doc";
- system( "test -f $pkg-*.tar.xz && rm $pkg-*.tar.xz" );
- # TODO : catch error if makepkg fails
-- system( "makepkg -ci" );
-+ system( "makepkg -i" );
- }
-
-
diff --git a/tllocalmgr-fix-texlive-local-match.patch b/tllocalmgr-fix-texlive-local-match.patch
deleted file mode 100644
index d6f707510ad4..000000000000
--- a/tllocalmgr-fix-texlive-local-match.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/tllocalmgr b/tllocalmgr
-index b947ed2..b8d75dc 100755
---- a/tllocalmgr
-+++ b/tllocalmgr
-@@ -140,7 +140,7 @@ chomp(my @pacman = `pacman -Qs ^texlive- | egrep ^local | cut -d'/' -f2`);
- my @localpacman = grep { /^texlive-local-/ } @pacman;
- # To have the standard collections we get rid of
- # texlive-local-<pkg> and texlive-localmanager:
--my @collpacman = grep { !/^texlive-local/ } @pacman;
-+my @collpacman = grep { !/^(texlive-local|tllocalmgr)/ } @pacman;
-
- if (@localpacman) {
- foreach (@localpacman) {
diff --git a/tllocalmgr-mirror-opt.patch b/tllocalmgr-mirror-opt.patch
deleted file mode 100644
index 59876ed7a592..000000000000
--- a/tllocalmgr-mirror-opt.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/tllocalmgr b/tllocalmgr
-index b947ed2..8724243 100755
---- a/tllocalmgr
-+++ b/tllocalmgr
-@@ -34,7 +34,7 @@ GetOptions( $opts,
- 'forceupdate',
- 'localsearch', #TODO
- 'location', #TODO ?
-- 'mirror',
-+ 'mirror=s',
- 'nocolor',
- 'help|h',
- 'version|v'
diff --git a/tllocalmgr-pkgs-nicer-error.patch b/tllocalmgr-pkgs-nicer-error.patch
deleted file mode 100644
index eaca84219081..000000000000
--- a/tllocalmgr-pkgs-nicer-error.patch
+++ /dev/null
@@ -1,39 +0,0 @@
---- a/tllocalmgr 2021-10-26 20:36:35.893293400 +0200
-+++ b/tllocalmgr 2021-10-26 20:37:50.127537318 +0200
-@@ -171,7 +171,13 @@
- $installedcol_versions{$col} = $ver;
- my @list = ();
- unless ( -f "$INSTALLEDPKGS/texlive-$col\_$ver.pkgs" ) {
-- die "Cannot open $INSTALLEDPKGS/texlive-$col\_$ver.pkgs\n"
-+ print BOLD RED "Cannot open $INSTALLEDPKGS/texlive-$col\_$ver.pkgs!\n";
-+ print RED "-- Likely the package texlive-$col does not create the '*.pkgs' file.\n";
-+ print RED "-- We will not process it further; please contact upstream maintainer\n";
-+ print RED "-- to have this fixed.\n";
-+ delete $installedcol_versions{$col};
-+ print LOG "Cannot open $INSTALLEDPKGS/texlive-$col\_$ver.pkgs!\n";
-+ next;
- };
- open INST, "<$INSTALLEDPKGS/texlive-$col\_$ver.pkgs" ;
- while (<INST>) {
-@@ -415,6 +421,10 @@
- sub run_install {
- foreach (@_) {
- my $tlpkg = $tlpdb->get_package($_);
-+ if (! $tlpkg) {
-+ warning "$_ is unknown" ;
-+ next ;
-+ }
- my $pkgrev = $tlpkg->revision;
- if ( $locallyinstalledpkg_versions{$_} ) {
- echo "$_ is already installed with texlive-local-$_";
-@@ -451,6 +461,10 @@
- sub run_installdoc {
- foreach (@_) {
- my $tlpkg = $tlpdb->get_package($_);
-+ if (! $tlpkg) {
-+ warning "$_ is unknown" ;
-+ next ;
-+ }
- my $pkgrev = $tlpkg->revision;
- if ( $locallyinstalleddoc_versions{$_} ) {
- echo "$_ is already installed with texlive-local-$_-doc";