updated on Sun Jan 8 12:02:35 UTC 2012
[aur-mirror.git] / libdlo / PKGBUILD
blob9c63467a3d5290f66730aed6a09bc23f9c573ab8
1 # Contributor: Joseph Pintozzi <joseph.pintozzi@gmail.com>
3 pkgname=libdlo
4 pkgver=0.1.2
5 pkgrel=1
6 pkgdesc="open-source implementation of DisplayLink USB graphics software"
7 arch=(i686 x86_64)
8 url="http://freedesktop.org/wiki/Software/libdlo"
9 license=('LGPL')
10 depends=(libusb)
11 options=(!distcc)
12 source=(http://people.freedesktop.org/~berniet/libdlo-$pkgver.tar.gz)
13 md5sums=('a7bb8ec3bdb6ce1d702794de3e4f2112')
15 build() {
16   cd "$srcdir/$pkgname-$pkgver"
18   ./configure --prefix=/usr --mandir=/usr/share/man
20   sed -i 's#DEFAULT_INCLUDES = -I. -I$(top_builddir)#DEFAULT_INCLUDES = -I. -I$(top_builddir) -I../src#' test/Makefile
21   sed -i 's#images/test#/usr/share/libdlo/images/test#' test/test1.c
23   make || return 1
24   make DESTDIR="$pkgdir/" install || return 1
26   mv $pkgdir/usr/bin/test1 $pkgdir/usr/bin/libdlo-test1 && \
27   mkdir -p $pkgdir/usr/share/libdlo/ && \
28   cp -r test/images $pkgdir/usr/share/libdlo/