1 #Maintainer: Jonathan Fine <Were.Vire_AT_gmail_DOT_com>
5 pkgdesc="AllegroFont is an Allegro wrapper for the wonderful FreeType2 library that makes Allegro (amongst other things) able to load and render TTF and many other famous font formats."
7 url='http://chernsha.sitesled.com/'
8 license=('custom:FreeType2 License')
9 depends=('allegro' 'freetype2')
11 source=(http://chernsha.sitesled.com/AlFont209.rar)
12 md5sums=('92898c28788d42d0eaa53c607ff40974')
15 #unrar is very verbose... lets shut it up
16 unrar x AlFont209.rar alfont/include alfont/src alfont/docs &> /dev/null || return 1
19 #lets build for linux, not windows
20 sed 's/#define ALFONT_WINDOWS//' -i include/alfont.h || return 1
21 sed 's/\/\/#define ALFONT_LINUX/#define ALFONT_LINUX/' -i include/alfont.h || return 1
22 #change a microsoft function to a GNU one
23 sed 's/_msize/malloc_usable_size/g' -i src/alfont.c || return 1
25 gcc -c src/alfont.c -o alfont.o -Iinclude -I/usr/include/freetype2 || return 1
26 ar rsc libalfont.a alfont.o || return 1
28 install -Dm644 libalfont.a $pkgdir/usr/lib/libalfont.a || return 1
29 install -Dm644 include/alfont.h $pkgdir/usr/include/alfont.h || return 1
30 install -Dm644 include/alfontdll.h $pkgdir/usr/include/alfontdll.h || return 1
31 install -Dm644 docs/FTL.txt $pkgdir/usr/share/licenses/alfont/FTL.txt || return 1