Commit 05eeea3f authored by Rémy Oudompheng's avatar Rémy Oudompheng
Browse files

Update tllocalmgr to TeXLive 2016, checksums are now SHA512

parent 8efbf0b7
......@@ -8,7 +8,7 @@ pkgdesc="A shell and command-line utility to manage TeXLive on Arch Linux"
arch=('any')
url="http://wiki.archlinux.org/index.php?title=TeXLive#TeXLive_Local_Manager"
license=('GPL')
depends=('texlive-core>=2010' 'perl-libwww' 'perl-term-shellui' 'perl-term-readline-gnu' 'perl-list-moreutils')
depends=('texlive-core>=2016' 'perl-libwww' 'perl-term-shellui' 'perl-term-readline-gnu' 'perl-list-moreutils')
source=("ftp://ftp.archlinux.org/other/texlive/$pkgname-$pkgver.tar.gz")
md5sums=('06ad40af9d71d20405af0cd090fd5648')
......
......@@ -18,7 +18,7 @@ my $TEXMFVAR = "/var/lib/texmf";
my $INSTALLEDPKGS = "$TEXMFVAR/arch/installedpkgs";
our $VERSION = "0.4.6";
our $YEAR = "2014";
our $YEAR = "2016";
my $CTANBASEURL="http://mirror.ctan.org/systems/texlive/tlnet";
my $ROOT = "$ENV{HOME}/.texlive/texmf-var/arch";
......@@ -623,8 +623,8 @@ sub makepkg {
open PKGBUILD, "> $ROOT/builds/$pkg/PKGBUILD";
my $newver = $tlpkg->revision;
my $col = $collectionsbypkg{$pkg};
my $pkgmd5 = $tlpkg->containermd5;
#TODO download it first and compare the md5sum
my $pkgsha512 = $tlpkg->containerchecksum;
#TODO download it first and compare the checksum
# if it differs ask the user if the PKGBUILD
# should be adjusted
print PKGBUILD <<"EOF"
......@@ -639,7 +639,7 @@ depends=('texlive-core')
conflicts=('texlive-$col>=$YEAR.$newver')
url='http://tug.org/texlive/'
source=('$TLARCHIVE/$pkg.tar.xz')
md5sums=($pkgmd5)
sha512sums=($pkgsha512)
package() {
cd \$srcdir
......@@ -714,12 +714,12 @@ sub makepkgdoc {
mkpath( "$ROOT/builds/$pkg-doc", { mode => 0755 });
open PKGBUILD, "> $ROOT/builds/$pkg-doc/PKGBUILD";
my $newver = $tlpdb->package_revision($pkg);
#TODO check if md5sums are defined in the database
#TODO download it first and compare the md5sums
#TODO check if checksums are defined in the database
#TODO download it first and compare the checksums
# if they differ ask the user if the PKGBUILD
# should be adjusted
my $docpkgmd5 = $tlpdb->get_package($pkg)->doccontainermd5;
my $srcpkgmd5 = $tlpdb->get_package($pkg)->srccontainermd5;
my $docpkgsum = $tlpdb->get_package($pkg)->doccontainerchecksum;
my $srcpkgsum = $tlpdb->get_package($pkg)->srccontainerchecksum;
print PKGBUILD <<"EOF"
# Generated by tllocalmgr
pkgname=texlive-local-$pkg-doc
......@@ -732,15 +732,15 @@ depends=('texlive-core')
url='http://tug.org/texlive/'
EOF
;
if ($srcpkgmd5) {
if ($srcpkgsum) {
print PKGBUILD <<"EOF"
source=('$TLARCHIVE/$pkg.doc.tar.xz' '$TLARCHIVE/$pkg.source.tar.xz')
md5sums=('$docpkgmd5' '$srcpkgmd5')
sha512sums=('$docpkgsum' '$srcpkgsum')
EOF
} else {
print PKGBUILD <<"EOF"
source=('$TLARCHIVE/$pkg.doc.tar.xz')
md5sums=('$docpkgmd5')
sha512sums=('$docpkgsum')
EOF
};
print PKGBUILD <<"EOF"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment