You are not logged in.
Offline
With all the knowledge I gained making the lib32-openal-git PKGBUILD, I got a compilable lib32-harfbuzz-git PKGBUILD prototype. For what ever reason, Arch Linux is running an older version of lib32-harfbuzz at the moment 1.4.1 instead of the latest 1.4.6. Anyone care to review it so its cool to upload to the AUR?
# Maintainer: Vincent Grande <shoober420>
# Contributor: Eric Bailey <nerflad@gmail.com>
# Contributor: Kamran Mackey <kamranm1200@gmail.com>
pkgbase=(lib32-harfbuzz-git)
pkgname=(lib32-harfbuzz-git lib32-harfbuzz-icu-git)
pkgver=1.4.6.r4.g06cfe3f7
pkgrel=1
pkgdesc="OpenType text shaping engine"
arch=(i686 x86_64)
url="http://www.freedesktop.org/wiki/Software/HarfBuzz"
license=(MIT)
makedepends=(ragel python2 glib2 lib32-freetype2 lib32-cairo lib32-icu gobject-introspection)
source=(git://github.com/behdad/harfbuzz.git)
sha256sums=('SKIP')
_gitname=harfbuzz
pkgver() {
cd "$_gitname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
mkdir path
ln -s /usr/bin/python2 path/python
cd "$_gitname"
}
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd "$_gitname"
./autogen.sh
./configure --prefix=/usr --libdir=/usr/lib32 \
--with-glib --with-freetype --with-cairo --with-icu --without-graphite2 \
--with-gobject
make
}
check() {
cd "$_gitname"
PATH="$srcdir/path:$PATH" make -k check || :
}
package_lib32-harfbuzz-git() {
depends=(glib2 freetype2 graphite)
optdepends=('cairo: hb-view program')
conflicts=(lib32-harfbuzz)
provides=(lib32-harfbuzz)
cd "$_gitname"
make DESTDIR="$pkgdir" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
mkdir -p "$pkgdir/usr/share/licenses"
ln -s harfbuzz "$pkgdir/usr/share/licenses/lib32-harfbuzz"
# Split harfbuzz-icu
mkdir -p ../hb-icu/usr/{include/harfbuzz,lib32/pkgconfig}; cd ../hb-icu
mv "$pkgdir"/usr/lib32/libharfbuzz-icu* ./usr/lib32
mv "$pkgdir"/usr/lib32/pkgconfig/harfbuzz-icu.pc ./usr/lib32/pkgconfig
}
package_lib32-harfbuzz-icu-git(){
pkgdesc="$pkgdesc (ICU integration)"
depends=(harfbuzz icu)
conflicts=(lib32-harfbuzz-icu)
provides=(lib32-harfbuzz-icu)
mv hb-icu/* "$pkgdir"
mkdir -p "$pkgdir/usr/share/licenses"
ln -s harfbuzz-icu "$pkgdir/usr/share/licenses/lib32-harfbuzz-icu"
}
Last edited by TyranT (2017-05-17 21:48:24)
Offline