summaryrefslogtreecommitdiff
path: root/pkgbuild/PKGBUILD.in
blob: bc99cdda895f71c77d08ad9796658523104fc318 (plain) (blame)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org>
pkgname=('efl' 'efl_doc' 'efl_x11')
pkgver=@VERSION@
pkgrel=1
pkgdesc="Enlightenment Foundation Libraries - GIT development snapshot (Ecore, Eldbus, Edje, Eet, Eeze, Efreet, Eina, Eio, Embryo, Emotion, Eo, Ephysics, Ethumb, & Evas)"
arch=('i686' 'x86_64' 'arm')
url="http://www.enlightenment.org"
license=('BSD' 'LGPL2' 'GPL2')
makedepends=('doxygen')
depends=('bullet' 'libpng' 'libjpeg-turbo' 'gstreamer0.10'
         'gstreamer0.10-base' 'gstreamer0.10-good' 
	 'gstreamer0.10-bad' 'gstreamer0.10-ugly' 'gstreamer0.10-ffmpeg'
	 'zlib' 'lua' 'libtiff' 'openssl' 'util-linux' 'curl' 'dbus-core'
	 'glibc' 'fontconfig' 'freetype2' 'fribidi' 'libpulse'
	 'libsndfile' 'systemd' 'libx11' 'libxau' 'libxcomposite'
	 'libxdamage' 'libxdmcp' 'libxext' 'libxfixes' 'libxinerama'
	 'libxi' 'libxrandr' 'libxrender' 'libxss' 'libxtst'
	 'libxcursor' 'libxp' 'libgl' 'giflib' 'libwebp' 'harfbuzz')
provides=("ecore=$pkgver" "eldbus=$pkgver" "edje=$pkgver"
          "eet=$pkgver" "eeze=$pkgver" "efreet=$pkgver"
	  "eina=$pkgver" "eio=$pkgver" "embryo=$pkgver" "emotion=$pkgver"
          "ephysics=$pkgver" "ethumb=$pkgver" "evas=$pkgver"
	  "efl=$pkgver" 'efl_x11' 'efl-svn')
conflicts=('ecore' 'edje' 'eet' 'eeze' 'efreet' 'eina' 'eio' 'embryo'
           'emotion' 'ethumb' 'evas' 'efl' 'efl_x11' 'efl-svn')
options=('strip' 'docs' 'zipman' '!libtool' 'debug')
buildflags="-O2 -g -fvisibility=hidden -fomit-frame-pointer"
build() {
  cd "../.."
  make clean distclean
  ./configure --prefix=/usr \
  --disable-static --disable-tslib --enable-fb \
  --enable-xinput22 --enable-multisense --enable-systemd \
  --enable-image-loader-webp --enable-harfbuzz
  make
}

#check() {
#  cd "../.."
#  make -k check
#}

package_efl() {
  cd "../.."
  rm -rf $pkgdir/usr
  make -j1 DESTDIR="$pkgdir/" install
  install -Dm644 README $pkgdir/usr/share/$pkgname/licenses/$pkgname/README
  install -Dm644 NEWS $pkgdir/usr/share/$pkgname/licenses/$pkgname/NEWS
  install -Dm644 ChangeLog $pkgdir/usr/share/$pkgname/licenses/$pkgname/ChangeLog
  install -Dm644 COMPLIANCE $pkgdir/usr/share/$pkgname/licenses/$pkgname/COMPLIANCE
  install -Dm644 AUTHORS $pkgdir/usr/share/$pkgname/licenses/$pkgname/AUTHORS
  install -Dm644 licenses/COPYING.BSD $pkgdir/usr/share/$pkgname/licenses/$pkgname/licenses/COPYING.BSD
  install -Dm644 licenses/COPYING.GPL $pkgdir/usr/share/$pkgname/licenses/$pkgname/licenses/COPYING.GPL
  install -Dm644 licenses/COPYING.LGPL $pkgdir/usr/share/$pkgname/licenses/$pkgname/licenses/COPYING.LGPL
  install -Dm644 licenses/COPYING.SMALL $pkgdir/usr/share/$pkgname/licenses/$pkgname/licenses/COPYING.SMALL
  rm -rf \
  $pkgdir/usr/include/evas-1/Evas_Engine_*_X11.h \
  $pkgdir/usr/include/ecore-x-1 \
  $pkgdir/usr/lib/evas/modules/engines/*_x11 \
  $pkgdir/usr/lib/ecore_evas/engines/x \
  $pkgdir/usr/lib/libecore_x* \
  $pkgdir/usr/lib/pkgconfig/ecore-x.pc \
  $pkgdir/usr/lib/pkgconfig/evas-*-x11.pc
}

package_efl_doc() {
  cd "../.."
  rm -rf $pkgdir/usr
  make -j1 doc
  make -j1 DESTDIR="$pkgdir/" install
  mkdir -p $pkgdir/usr/share/man/man3
  cp -r doc/html $pkgdir/usr/share/$pkgname/
  cp -r doc/latex $pkgdir/usr/share/$pkgname/latex
  rm -f `find $pkgdir -name '*.la' -print`
}

package_efl_x11() {
  cd "../.."
  rm -rf $pkgdir/usr
  make -j1 DESTDIR="$pkgdir/" install
  tar cf /tmp/xf.tar \
  $pkgdir/usr/include/evas-1/Evas_Engine_*_X11.h \
  $pkgdir/usr/include/ecore-x-1 \
  $pkgdir/usr/lib/evas/modules/engines/*_x11 \
  $pkgdir/usr/lib/ecore_evas/engines/x \
  $pkgdir/usr/lib/libecore_x* \
  $pkgdir/usr/lib/pkgconfig/ecore-x.pc \
  $pkgdir/usr/lib/pkgconfig/evas-*-x11.pc
  rm -rf $pkgdir/usr
  tar -C / -P -xf /tmp/xf.tar
  rm -f `find $pkgdir -name '*.la' -print`
}