Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

patched PKGBUILD for miscsplashutils

View PKGBUILD
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
# Maintainer: Heiko Baums <heiko@baums-on-web.de>
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
# Contributor: Wesley Merkel <ooesili@gmail.com>
 
pkgname=miscsplashutils
pkgver=0.1.8
pkgrel=5
pkgdesc='Miscellaneous framebuffer utilities including fbres and fbtruetype'
arch=('i686' 'x86_64')
url='http://dev.gentoo.org/~spock/projects/gensplash/'
license=('GPL')
depends=('freetype2')
source=("http://distfiles.gentoo.org/distfiles/${pkgname}-${pkgver}.tar.bz2"
"freetype2.patch")
md5sums=('0a9505c5c5ed169e6158d2c1b06ff40b'
'cb1b23204a64c4670501503ce0a3cc62')
 
prepare() {
cd "$srcdir/$pkgname-$pkgver"
 
sed -i "26s:libz.a:libz.a \$\(LIBDIR\)/libbz2.a:" fbtruetype/Makefile
#/usr/bin move update
sed -i "s/sbin/bin/g" fbtruetype/Makefile
# freetype2 patch
patch -p1 -i ../freetype2.patch
}
 
build() {
cd "$srcdir/$pkgname-$pkgver"
 
make
}
 
package() {
cd "$srcdir/$pkgname-$pkgver"
 
make DESTDIR="$pkgdir/usr" install
 
install -d "$pkgdir/usr/lib/splash/bin"
ln -s /usr/bin/wc "$pkgdir/usr/lib/splash/bin"
 
# install luxisri.ttf to avoid an x-server dependency
install -D -m644 fbtruetype/luxisri.ttf "$pkgdir/etc/splash/luxisri.ttf"
}
View PKGBUILD
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
diff --git a/fbtruetype/Makefile b/fbtruetype/Makefile
index 70e686b..90db03e 100644
--- a/fbtruetype/Makefile
+++ b/fbtruetype/Makefile
@@ -19,7 +19,7 @@ LIB ?= lib
LIBDIR = $(PREFIX)/$(LIB)
-PROGRAMS = fbtruetype fbtruetype.static
+PROGRAMS = fbtruetype
OBJECTS = fbtruetype.o messages.o console.o ttf.o luxisri.o
LDFLAGS += -L$(LIBDIR)
@@ -58,7 +58,6 @@ fbtruetype.static: $(OBJECTS)
install:
$(INSTALL_PROG) -D fbtruetype $(DESTDIR)/bin/fbtruetype
- $(INSTALL_PROG) -D fbtruetype.static $(DESTDIR)/bin/fbtruetype.static
strip: $(PROGRAMS)
$(STRIP) -s $(PROGRAMS)
diff --git a/fbtruetype/ttf.c b/fbtruetype/ttf.c
index 6e73388..a32ebf5 100644
--- a/fbtruetype/ttf.c
+++ b/fbtruetype/ttf.c
@@ -12,9 +12,9 @@
#include <ft2build.h>
#include FT_FREETYPE_H
-/* #include <freetype/freetype.h> */
-#include <freetype/ftoutln.h>
-#include <freetype/ttnameid.h>
+/* #include <freetype2/freetype.h> */
+#include <freetype2/ftoutln.h>
+#include <freetype2/ttnameid.h>
#include "ttf.h"

thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.