diff options
author | otreblan | 2021-06-03 11:26:34 -0500 |
---|---|---|
committer | otreblan | 2021-06-03 11:26:34 -0500 |
commit | e51c41915ff7bbbbd5e48214a9970ee6fcc8796b (patch) | |
tree | 7a60635b3d8da131ed248990e668bd4e85d93150 | |
download | aur-e51c41915ff7bbbbd5e48214a9970ee6fcc8796b.tar.gz |
First commit
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | .gitignore | 15 | ||||
-rw-r--r-- | PKGBUILD | 58 |
3 files changed, 86 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0d85f511cdff --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = pplatex + pkgdesc = A tool to reformat the output of latex and friends into readable messages. + pkgver = 1.0 + pkgrel = 1 + url = https://github.com/stefanhepp/pplatex + arch = x86_64 + license = GPL3 + makedepends = cmake + depends = pcre + source = pplatex-1.0.tar.gz::https://github.com/stefanhepp/pplatex/archive/pplatex-1.0-rc3.tar.gz + sha256sums = 83376ca3a92a21cf002ba1e5c7c09686d4c0c83c5af93d0118c4270437945dc7 + +pkgname = pplatex diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..0fde8ba90f3a --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# create by https://github.com/iamcco/coc-gitignore (Thu Jun 03 2021 11:09:15 GMT-0500 (hora estándar de Perú)) +# ArchLinuxPackages.gitignore: +*.tar +*.tar.* +*.jar +*.exe +*.msi +*.zip +*.tgz +*.log +*.log.* +*.sig + +pkg/ +src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..959da831d8ab --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: Otreblan <otreblain@gmail.com> + +pkgname=pplatex +pkgver=1.0 +_pkgrc=rc3 +pkgrel=1 +epoch= +pkgdesc="A tool to reformat the output of latex and friends into readable messages." +arch=('x86_64') +url="https://github.com/stefanhepp/pplatex" +license=('GPL3') +groups=() +depends=('pcre') +makedepends=('cmake') +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgname-$pkgver-$_pkgrc.tar.gz") +noextract=() +sha256sums=('83376ca3a92a21cf002ba1e5c7c09686d4c0c83c5af93d0118c4270437945dc7') + +prepare() { + cp -rf "$pkgname-$pkgname-$pkgver-$_pkgrc" "$pkgname-$pkgver" + + cd "$pkgname-$pkgver" + mkdir -p build + + local CMAKE_VERSION="$(LC_ALL=C cmake --version | awk '{print $3; exit}')" + + # Needed for the link time optimization + sed "s/\(cmake_minimum_required(\).*)/\1VERSION $CMAKE_VERSION)/" \ + -i CMakeLists.txt +} + +build() { + cd "$srcdir/$pkgname-$pkgver/build" + + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \ + .. + + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + install -Dm755 build/src/pplatex "$pkgdir/usr/bin/pplatex" + ln -s pplatex "$pkgdir/usr/bin/ppdflatex" + install -Dm755 src/ppluatex "$pkgdir/usr/bin/ppluatex" +} |