diff options
author | Pedro A. López-Valencia | 2023-11-29 19:40:49 -0500 |
---|---|---|
committer | Pedro A. López-Valencia | 2023-11-29 19:40:49 -0500 |
commit | a2b9834af4c008cf4d1b48b4ff6a6fc40effaacf (patch) | |
tree | 915faa012a6916abc66b5620cc7b94a890b1e19f | |
parent | 3e949525e44d6d4e94ea8f33d5eecdf48b392233 (diff) | |
download | aur-a2b9834af4c008cf4d1b48b4ff6a6fc40effaacf.tar.gz |
* Clean up PKGBUILD in anger, dropping fluff.
* Do the right thing for people who live in countries
using ANSI Letter instead of ISO A4. I doubt the list
is comprehensive. Please report back.
* Enable libgroff native C++ allocator.
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 77 |
2 files changed, 42 insertions, 38 deletions
@@ -1,6 +1,6 @@ pkgbase = groff-git pkgdesc = GNU Troff. Official git trunk. - pkgver = 1.23.0.rc1.2913.g27568d6e3 + pkgver = 1.23.0.598 pkgrel = 1 url = http://www.gnu.org/software/groff/ arch = x86_64 @@ -15,6 +15,7 @@ pkgbase = groff-git depends = perl-file-homedir provides = groff conflicts = groff + replaces = groff source = groff-git::git://git.savannah.gnu.org/groff.git source = gnulib-git::git://git.sv.gnu.org/gnulib.git source = site.tmac @@ -1,9 +1,7 @@ # Maintainer: Pedro A. López-Valencia <https://aur.archlinux.org/users/toropisco> -CLANG=0 - pkgname=groff-git -pkgver=1.23.0.rc1.2913.g27568d6e3 +pkgver=1.23.0.598 pkgrel=1 pkgdesc="GNU Troff. Official git trunk." arch=('x86_64') @@ -19,29 +17,29 @@ depends=( 'perl-file-homedir' ) makedepends=('git') +# +# A provides here is a mere empty gesture. It doesn't work unless the core package includes the same. +# +provides=('groff') +# +# Absolutely necessary. Those who advocate for replaces only, have not used +# pacman in anger apparently. +# conflicts=('groff') -provides=('groff') +replaces=('groff') source=( "$pkgname::git://git.savannah.gnu.org/groff.git" "gnulib-git::git://git.sv.gnu.org/gnulib.git" 'site.tmac' ) -if [[ CLANG == 1 ]]; then - makedepends+=( - 'clang' - 'llvm' - 'lld' - ) -fi - b2sums=('SKIP' 'SKIP' 'c2906f83259261ba3927ca4870ce1035f04a66e9e2331a30961373d0b5dc2f62955b2cdf2ed8cebf927912a9b689fc9a3a25891dee0bdb301a41acea9dac56c3') pkgver() { cd "$srcdir/$pkgname" - printf "%s" "$(git describe | sed 's/\-/\./g')" + printf "%s" "$(git describe | awk -F- '{ print $1"."$2 }')" } prepare() { @@ -53,61 +51,66 @@ prepare() { } build() { - if [[ $CLANG == 1 ]]; then - export CC="clang" - export CXX="clang++" - export LD="ldd" - export AR="llvm-ar" - export AS="llvm-as" - export NM="llvm-nm" - export STRIP="llvm-stipr" - fi - mkdir -p "$srcdir/$pkgname"/build - cd "$srcdir/$pkgname"/build - local _configopts=( --prefix=/usr + --enable-groff-allocator --disable-rpath --with-x --with-appresdir=/usr/share/X11/app-defaults --with-doc=yes --with-uchardet=yes ) - ../configure "${_configopts[@]}" - make } check() { cd "$srcdir/$pkgname"/build - make check } package() { cd "$srcdir/$pkgname"/build - - if [[ ${LANG/en_US} ]] || [[ ${LANG/es_CO} ]]; then + # + # Please report if your country uses ANSI paper sizes instead of ISO, + # be it officially or de facto---as is the case in Colombia, Mexico + # Chile or Canada---. + # + if + [[ ${LANG/en_US} ]] || \ + [[ ${LANG/en_CA} ]] || \ + [[ ${LANG/en_PH} ]] || \ + [[ ${LANG/es_CO} ]] || \ + [[ ${LANG/es_CL} ]] || \ + [[ ${LANG/es_CR} ]] || \ + [[ ${LANG/es_DO} ]] || \ + [[ ${LANG/es_GT} ]] || \ + [[ ${LANG/es_MX} ]] || \ + [[ ${LANG/es_PA} ]] || \ + [[ ${LANG/es_US} ]] || \ + [[ ${LANG/fil_PH} ]] || \ + [[ ${LANG/fr_CA} ]] || \ + [[ ${LANG/ik_CA} ]] || \ + [[ ${LANG/iu_CA} ]] || \ + [[ ${LANG/shs_CA} ]] || \ + [[ ${LANG/tl_PH} ]] \ + then make DESTDIR="$pkgdir/" PAPER=letter install else make DESTDIR="$pkgdir/" PAPER=A4 install fi - + # ## Copypaste from core package's PKGBUILD... - + # # add compatibility symlinks + # ln -s eqn $pkgdir/usr/bin/geqn ln -s tbl $pkgdir/usr/bin/gtbl ln -s soelim $pkgdir/usr/bin/zsoelim - - # FS33760 - TERMCAP variables not followed - # TODO: everyone is doing this - find out why upstream does not... # - # Having being privy to the whole thing since 2003, I wonder why people - # still stick to this. Blech! Vorbote. + # FS33760 - TERMCAP variables not followed # cat $srcdir/site.tmac >> \ $pkgdir/usr/share/groff/site-tmac/man.local |