summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO46
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD46
3 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5c18329da24
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,46 @@
+pkgbase = miktex-git
+ pkgdesc = a distribution of the TeX/LaTeX typesetting system
+ pkgver = 2.9.6880.r13.eb169788
+ pkgrel = 1
+ url = https://miktex.org
+ arch = x86_64
+ license = custom
+ makedepends = git
+ makedepends = cmake
+ makedepends = coreutils
+ makedepends = fop
+ makedepends = sed
+ makedepends = libxslt
+ depends = apr
+ depends = apr-util
+ depends = bzip2
+ depends = cairo
+ depends = expat
+ depends = fontconfig
+ depends = freetype2
+ depends = fribidi
+ depends = gd
+ depends = gmp
+ depends = graphite
+ depends = harfbuzz-icu
+ depends = hunspell
+ depends = icu
+ depends = libjpeg
+ depends = log4cxx
+ depends = xz
+ depends = mpfr
+ depends = libmspack
+ depends = openssl
+ depends = pixman
+ depends = libpng
+ depends = poppler
+ depends = popt
+ depends = potrace
+ depends = uriparser
+ depends = zziplib
+ depends = poppler-qt5
+ source = miktex::git+https://github.com/MiKTeX/miktex.git
+ md5sums = SKIP
+
+pkgname = miktex-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..8dfb525a0bc
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/src
+/pkg
+/miktex
+*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..574304bb86b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: ccat3z <c0ldcat3z@gmail.com>
+
+pkgname=miktex-git
+pkgver=2.9.6880.r13.eb169788
+pkgrel=1
+pkgdesc="a distribution of the TeX/LaTeX typesetting system"
+arch=('x86_64')
+url="https://miktex.org"
+license=('custom')
+depends=('apr' 'apr-util' 'bzip2' 'cairo' 'expat' 'fontconfig' 'freetype2'
+ 'fribidi' 'gd' 'gmp' 'graphite' 'harfbuzz-icu' 'hunspell' 'icu'
+ 'libjpeg' 'log4cxx' 'xz' 'mpfr' 'libmspack' 'openssl' 'pixman' 'libpng'
+ 'poppler' 'popt' 'potrace' 'uriparser' 'zziplib' 'poppler-qt5')
+makedepends=('git' 'cmake' 'coreutils' 'fop' 'sed' 'libxslt')
+source=('miktex::git+https://github.com/MiKTeX/miktex.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
+}
+
+prepare() {
+ cd "$srcdir/${pkgname%-git}"
+ [ -d build ] || mkdir build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/opt/miktex -DWITH_UI_QT=ON ..
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}/build"
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}/build"
+ make DESTDIR="$pkgdir/" install
+
+ cd $pkgdir
+
+ install -Dm644 opt/miktex/share/applications/miktex-console.desktop usr/share/applications/miktex-console.desktop
+ sed -i 's/^Exec=miktex-console$/Exec=\/opt\/miktex\/bin\/miktex-console/' usr/share/applications/miktex-console.desktop
+ cp -R opt/miktex/share/applications/icons usr/share/
+
+ mv opt/miktex/man usr/share/man
+}