You are not logged in.

#1 2017-04-30 00:00:08

TyranT
Banned
Registered: 2017-03-01
Posts: 88

[PKGBUILD Review] lib32-pango-git

So the lib32-pango package has been out of date for almost 2 months, and there's no git version of the 32bit build in the AUR. This sounds like a good time for alternative. Could someone make a lib32-pango-git PKGBUILD please?

Last edited by TyranT (2017-05-19 16:51:23)

Offline

#2 2017-04-30 00:33:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [PKGBUILD Review] lib32-pango-git

Why not just build it from the ABS?  I just bumped the pkgver in the PKGBUILD and it built and installed fine.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2017-04-30 02:33:38

TyranT
Banned
Registered: 2017-03-01
Posts: 88

Re: [PKGBUILD Review] lib32-pango-git

Oh, I figured if it was that easy of a fix, someone would have updated it by now. I do that for the "linux-api-headers" package every new kernel release. It still would be awesome to have a 32bit build of the git version of pango.

Last edited by TyranT (2017-04-30 03:15:59)

Offline

#4 2017-05-19 16:26:31

TyranT
Banned
Registered: 2017-03-01
Posts: 88

Re: [PKGBUILD Review] lib32-pango-git

Prototype PKGBUILD. Official package is out of date (1.4.3 instead of 1.4.5).

# Maintainer: Vincent Grande <shoober420>
# Contributor: Lubosz Sarnecki <lubosz@gmail.com>
# Contributor: mariusz - myswiat <my.swiat@o2.pl>

_realname=lib32-pango
pkgname=$_realname-git
pkgver=1.40.5.3871.e422e84d
pkgrel=1
pkgdesc="A library for layout and rendering of text"
arch=('i686' 'x86_64')
url="http://gnome.org/"
license=('LGPL')
depends=('glib2' 'lib32-cairo' 'libxft' 'libthai' 'lib32-freetype2' 'lib32-harfbuzz' 'lib32-fontconfig')
makedepends=('gobject-introspection' 'libxt' 'gtk-doc')
provides=("${_realname}=${pkgver}")
conflicts=("${_realname}")
options=('!libtool' 'strip' 'debug')
source=("git+git://git.gnome.org/pango")
sha256sums=("SKIP")

subver() {
  PREFIX="m4_define(\[pango_version_$1\], \["
  echo $(grep "$PREFIX" configure.ac | eval sed "'s/$PREFIX//'" | sed 's/\])//')
}
 
pkgver() {
  cd pango
  hash=$(git log --pretty=format:'%h' -n 1)
  revision=$(git rev-list --count HEAD)
  echo $(subver major).$(subver minor).$(subver micro).$revision.$hash
}

prepare() {
  cd "${srcdir}/pango"

  sed -i 's#"pango.modules"#"pango.modules-32"#' pango/modules.c
}

build() {
  export CC="gcc -m32"
  export CXX="g++ -m32"
  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"

  cd pango
  ./autogen.sh \
    --prefix=/usr \
    --libdir=/usr/lib32 \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --with-dynamic-modules=arabic-fc,arabic-lang,basic-fc,basic-win32,basic-x,basic-atsui,hangul-fc,hebrew-fc,indic-fc,indic-lang,khmer-fc,syriac-fc,tibetan-fc \
    --with-included-modules=basic-fc
   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
}

package() {
  cd pango
  make DESTDIR=$pkgdir install
  rm -rf "$pkgdir"/etc
  rm -rf "$pkgdir"/usr/{bin/pango-view,share,include}
}

Offline

Board footer

Powered by FluxBB