diff options
author | Carlos Aznarán | 2024-06-10 10:56:54 -0500 |
---|---|---|
committer | Carlos Aznarán | 2024-06-10 10:56:54 -0500 |
commit | 3750ee12e5f18ff616f24cb7ec3de448265c9115 (patch) | |
tree | 46e6b1f1702eb2e0a828321e57d1cf0bca79e45c | |
parent | 2d0bd3c3388bba551e84df502eb261699bff7697 (diff) | |
download | aur-tex-math-time-pro2-lite.tar.gz |
Fix installation
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 32 | ||||
-rw-r--r-- | mtp2lite.install | 11 |
4 files changed, 25 insertions, 28 deletions
@@ -1,13 +1,12 @@ -# Generated by mksrcinfo v8 -# Sun Jun 26 06:13:52 UTC 2016 pkgbase = tex-math-time-pro2-lite pkgdesc = TeX math commercial font (free version) pkgver = 1.000 pkgrel = 1 - url = http://www.pctex.com/mtpro2.html - install = mtp2lite.install + url = https://www.pctex.com/mtpro2.html arch = any license = custom + depends = texlive-latex + source = local://mtp2lite.zip.tpm + md5sums = 278045b67872ffab6767efff3f58c7ad pkgname = tex-math-time-pro2-lite - diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..72e8ffc0db8a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +* @@ -1,3 +1,4 @@ +# Maintainer: Carlos Aznarán <caznaranl@uni.pe> # Contributor: orumin <dev@orum.in> # notice: @@ -7,7 +8,7 @@ # # You can download MathTime Pro2 Lite font below: # -# http://www2.pctex.com/downloads.php?product=MTP2L +# https://www.pctex.com/downloads.php?product=MTP2L # # if you have done downloaded, mtp2lite.zip.tpm place same as this PKGBUILD directory # Then, uncomment source and md5sums @@ -16,20 +17,27 @@ pkgname=tex-math-time-pro2-lite pkgver=1.000 pkgrel=1 pkgdesc="TeX math commercial font (free version)" -url="http://www.pctex.com/mtpro2.html" +arch=(any) license=('custom') -arch=('any') -dpeendes=('texlive-core') -install=mtp2lite.install -#source=("mtp2lite.zip.tpm") -#md5sums=('278045b67872ffab6767efff3f58c7ad') +url="https://www.pctex.com/mtpro2.html" +depends=(texlive-latex) +source=(local://mtp2lite.zip.tpm) +md5sums=('278045b67872ffab6767efff3f58c7ad') package() { - cd "${srcdir}" + install -m755 -d "$pkgdir/var/lib/texmf/arch/installedpkgs" + install -m644 /dev/stdin "$pkgdir/var/lib/texmf/arch/installedpkgs/${pkgname}.pkgs" <<-EOF + mtpro2 1 + EOF + install -m644 /dev/stdin "$pkgdir/var/lib/texmf/arch/installedpkgs/${pkgname}.maps" <<-EOF + Map mtpro2.map + EOF - install -d "${pkgdir}/usr/local/share/" - install -d "${pkgdir}/usr/share/licenses/${pkgname}" + install -m755 -d "$pkgdir/usr/share" + cd texmf + find . -type d -exec install -d -m755 "$pkgdir/usr/share/texmf-dist/"'{}' \; + find . -type f -exec install -m644 '{}' "$pkgdir/usr/share/texmf-dist/"'{}' \; - install -Dm644 EULA-MTPro2Lite.txt "${pkgdir}/usr/share/licenses/${pkgname}" - cp -r texmf "${pkgdir}"/usr/local/share/ + cd .. + install -Dm644 EULA-MTPro2Lite.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } diff --git a/mtp2lite.install b/mtp2lite.install deleted file mode 100644 index 25179c68cb70..000000000000 --- a/mtp2lite.install +++ /dev/null @@ -1,11 +0,0 @@ -post_install() { - texhash -} - -post_upgrade() { - post_install $1 -} - -post_remove() { - post_install $1 -} |