Skip to content

Instantly share code, notes, and snippets.

Created March 30, 2014 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9871583 to your computer and use it in GitHub Desktop.
Save anonymous/9871583 to your computer and use it in GitHub Desktop.
Pkgfile
# Description: A free and portable TrueType font rendering engine
# URL: http://www.freetype.org
# Maintainer:
# Depends on: zlib
name=fontconfig
version=`date +%Y%m%d`
release=1
source=()
build(){
if cd $PKGMK_ROOT/$name ; then
git pull
else
git clone git://anongit.freedesktop.org/$name $PKGMK_ROOT/$name
fi
cp -r $PKGMK_ROOT/$name $SRC/ && cd $SRC/$name
./autogen.sh --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/man \
--with-templatedir=/etc/fonts/conf.avail \
--with-xmldir=/etc/fonts \
--localstatedir=/var
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/man \
--with-templatedir=/etc/fonts/conf.avail \
--with-xmldir=/etc/fonts \
--localstatedir=/var
make
make DESTDIR=$PKG install
rm -f $PKG/etc/fonts/conf.d/README
rm -rf $PKG/usr/share
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment