Skip to content

Instantly share code, notes, and snippets.

@kennytm
Created March 15, 2012 16:40
Show Gist options
  • Save kennytm/2045194 to your computer and use it in GitHub Desktop.
Save kennytm/2045194 to your computer and use it in GitHub Desktop.
directfb-git
# Maintainer: kennytm <[email protected]>
# Contributor: kennytm <[email protected]>
pkgname=directfb-git
pkgver=20111209
pkgrel=1
pkgdesc='DirectFB is a thin library that provides hardware graphics acceleration, input device handling and abstraction, integrated windowing system with support for translucent windows and multiple display layers, not only on top of the Linux Framebuffer Device.'
arch=('i686' 'x86_64')
url='http://directfb.org/'
license=('LGPL')
makedepends=('git' 'gcc' 'autoconf' 'flux-git')
depends=('libpng' 'linux-fusion-git')
provides=('directfb=1.6')
conflicts=('directfb')
optdepends=('libjpeg-turbo: JPEG image support'
'jasper: JPEG-2000 support'
'giflib: GIF image/video support'
'libmng: MNG video support'
'freetype2: Freetype font support'
'xorg-server: X11 support')
_gitroot='git://git.directfb.org/git/directfb/core/DirectFB.git'
_gitname='DirectFB'
build() {
msg "Connecting to git server..."
if [ -d $_gitname ]; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone --depth=1 $_gitroot $_gitname
fi
msg "git checkout done or server timeout"
rm -rf "$srcdir/$_gitname-build"
mkdir "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
autoreconf -i --warnings=none "../$_gitname"
"../$_gitname/configure" --prefix=/usr --enable-multi \
--with-inputdrivers=none \
--with-smooth-scaling
make -j2
}
package() {
cd "$srcdir/$_gitname-build"
make DESTDIR="$pkgdir/" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment