summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile.am3
-rw-r--r--pkgbuild/PKGBUILD.in107
-rw-r--r--pkgbuild/efl.install16
3 files changed, 65 insertions, 61 deletions
diff --git a/Makefile.am b/Makefile.am
index 8a3325035c..161a091a01 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -107,7 +107,8 @@ old/README.ethumb \
107old/README.evas \ 107old/README.evas \
108old/README.evil \ 108old/README.evil \
109spec/efl.spec \ 109spec/efl.spec \
110pkgbuild/PKGBUILD 110pkgbuild/PKGBUILD \
111pkgbuild/efl.install
111 112
112pkgconfigdir = $(libdir)/pkgconfig 113pkgconfigdir = $(libdir)/pkgconfig
113pkgconfig_DATA = 114pkgconfig_DATA =
diff --git a/pkgbuild/PKGBUILD.in b/pkgbuild/PKGBUILD.in
index 63ed745701..d7c7a8b6b1 100644
--- a/pkgbuild/PKGBUILD.in
+++ b/pkgbuild/PKGBUILD.in
@@ -1,35 +1,45 @@
1# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org> 1# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org>
2pkgname=('efl' 'efl_doc' 'efl_x11') 2pkgname=('efl' 'efl_doc')
3pkgver=@VERSION@ 3pkgver=@VERSION@
4pkgrel=1 4pkgrel=1
5pkgdesc="Enlightenment Foundation Libraries - GIT development snapshot (Ecore, Eldbus, Edje, Eet, Eeze, Efreet, Eina, Eio, Embryo, Emotion, Eo, Ephysics, Ethumb, & Evas)" 5pkgdesc="Enlightenment Foundation Libraries - GIT development snapshot (Ecore, Eldbus, Edje, Eet, Eeze, Efreet, Eina, Eio, Embryo, Emotion, Eo, Ephysics, Ethumb, & Evas)"
6arch=('i686' 'x86_64' 'arm') 6arch=('i686' 'x86_64' 'arm')
7url="http://www.enlightenment.org" 7url="http://www.enlightenment.org"
8license=('BSD' 'LGPL2' 'GPL2') 8license=('BSD' 'LGPL2.1' 'GPL2' 'custom')
9makedepends=('doxygen') 9makedepends=('doxygen' 'check')
10depends=('bullet' 'libpng' 'libjpeg-turbo' 'gstreamer0.10' 10depends=('bullet' 'libpng' 'libjpeg-turbo' 'gstreamer0.10'
11 'gstreamer0.10-base' 'gstreamer0.10-good' 11 'gstreamer0.10-base' 'gstreamer0.10-good'
12 'gstreamer0.10-bad' 'gstreamer0.10-ugly' 'gstreamer0.10-ffmpeg' 12 'gstreamer0.10-bad' 'gstreamer0.10-ugly' 'gstreamer0.10-ffmpeg'
13 'zlib' 'lua' 'libtiff' 'openssl' 'util-linux' 'curl' 'dbus-core' 13 'zlib' 'lua' 'libtiff' 'openssl' 'util-linux' 'curl' 'dbus'
14 'glibc' 'fontconfig' 'freetype2' 'fribidi' 'libpulse' 14 'glibc' 'fontconfig' 'freetype2' 'fribidi' 'libpulse'
15 'libsndfile' 'systemd' 'libx11' 'libxau' 'libxcomposite' 15 'libsndfile' 'systemd' 'libx11' 'libxau' 'libxcomposite'
16 'libxdamage' 'libxdmcp' 'libxext' 'libxfixes' 'libxinerama' 16 'libxdamage' 'libxdmcp' 'libxext' 'libxfixes' 'libxinerama'
17 'libxi' 'libxrandr' 'libxrender' 'libxss' 'libxtst' 17 'libxi' 'libxrandr' 'libxrender' 'libxss' 'libxtst'
18 'libxcursor' 'libxp' 'libgl' 'giflib' 'libwebp' 'harfbuzz') 18 'libxcursor' 'libxp' 'libgl' 'giflib' 'libwebp' 'harfbuzz')
19provides_efl=("ecore=$pkgver" "eldbus=$pkgver" "edje=$pkgver" 19provides=("ecore=$pkgver" "eldbus=$pkgver" "edje=$pkgver"
20 "eet=$pkgver" "eeze=$pkgver" "efreet=$pkgver" 20 "eet=$pkgver" "eeze=$pkgver" "efreet=$pkgver"
21 "eina=$pkgver" "eio=$pkgver" "embryo=$pkgver" "emotion=$pkgver" 21 "eina=$pkgver" "eio=$pkgver" "embryo=$pkgver" "emotion=$pkgver"
22 "ephysics=$pkgver" "ethumb=$pkgver" "evas=$pkgver") 22 "ephysics=$pkgver" "ethumb=$pkgver" "evas=$pkgver")
23options=('strip' 'docs' 'zipman' '!libtool' 'debug') 23conflicts=('ecore' 'edje' 'eet' 'eeze' 'efreet' 'eina' 'eio' 'embryo' 'emotion'
24buildflags="-O2 -g -fvisibility=hidden -fomit-frame-pointer" 24 'ethumb' 'evas')
25options=('!libtool' 'debug')
26install=efl.install
27
28prepare() {
29 sed -i 's/env python$/&2/' "../../src/scripts/eina/eina-bench-cmp"
30}
31
25build() { 32build() {
26 cd "../.." 33 cd "../.."
27 make clean distclean 34 export CFLAGS="$CFLAGS -fvisibility=hidden -fomit-frame-pointer"
35 export CXXFLAGS="$CXXFLAGS -fvisibility=hidden -fomit-frame-pointer"
36 [[ -e Makefile ]] && make clean distclean
28 ./configure --prefix=/usr \ 37 ./configure --prefix=/usr \
29 --disable-static --disable-tslib --enable-fb \ 38 --disable-static --disable-tslib --enable-fb \
30 --enable-xinput22 --enable-multisense --enable-systemd \ 39 --enable-xinput22 --enable-multisense --enable-systemd \
31 --enable-image-loader-webp --enable-harfbuzz 40 --enable-image-loader-webp --enable-harfbuzz
32 make 41 make
42 make -j1 doc
33} 43}
34 44
35#check() { 45#check() {
@@ -39,52 +49,29 @@ build() {
39 49
40package_efl() { 50package_efl() {
41 cd "../.." 51 cd "../.."
42 rm -rf $pkgdir/usr
43 make -j1 DESTDIR="$pkgdir/" install 52 make -j1 DESTDIR="$pkgdir/" install
44 install -Dm644 README $pkgdir/usr/share/$pkgname/README 53 install -Dm644 README "$pkgdir/usr/share/$pkgname/README"
45 install -Dm644 NEWS $pkgdir/usr/share/$pkgname/NEWS 54 install -Dm644 NEWS "$pkgdir/usr/share/$pkgname/NEWS"
46 install -Dm644 ChangeLog $pkgdir/usr/share/$pkgname/ChangeLog 55 install -Dm644 ChangeLog "$pkgdir/usr/share/$pkgname/ChangeLog"
47 install -Dm644 AUTHORS $pkgdir/usr/share/$pkgname/AUTHORS 56 install -Dm644 AUTHORS "$pkgdir/usr/share/$pkgname/AUTHORS"
48 install -Dm644 COMPLIANCE $pkgdir/usr/share/$pkgname/COMPLIANCE 57 install -Dm644 COMPLIANCE "$pkgdir/usr/share/$pkgname/COMPLIANCE"
49 install -Dm644 licenses/COPYING.BSD $pkgdir/usr/share/licenses/$pkgname/COPYING.BSD 58 install -Dm644 licenses/COPYING.BSD "$pkgdir/usr/share/licenses/$pkgname/COPYING.BSD"
50 install -Dm644 licenses/COPYING.GPL $pkgdir/usr/share/licenses/$pkgname/COPYING.GPL 59 install -Dm644 licenses/COPYING.GPL "$pkgdir/usr/share/licenses/$pkgname/COPYING.GPL"
51 install -Dm644 licenses/COPYING.LGPL $pkgdir/usr/share/licenses/$pkgname/COPYING.LGPL 60 install -Dm644 licenses/COPYING.LGPL "$pkgdir/usr/share/licenses/$pkgname/COPYING.LGPL"
52 install -Dm644 licenses/COPYING.SMALL $pkgdir/usr/share/licenses/$pkgname/COPYING.SMALL 61 install -Dm644 licenses/COPYING.SMALL "$pkgdir/usr/share/licenses/$pkgname/COPYING.SMALL"
53 ln -s ../licenses/$pkgname/COPYING.BSD $pkgdir/usr/share/$pkgname/COPYING.BSD 62 ln -s "../licenses/$pkgname/COPYING.BSD" "$pkgdir/usr/share/$pkgname/COPYING.BSD"
54 ln -s ../licenses/$pkgname/COPYING.GPL $pkgdir/usr/share/$pkgname/COPYING.GPL 63 ln -s "../licenses/$pkgname/COPYING.GPL" "$pkgdir/usr/share/$pkgname/COPYING.GPL"
55 ln -s ../licenses/$pkgname/COPYING.LGPL $pkgdir/usr/share/$pkgname/COPYING.LGPL 64 ln -s "../licenses/$pkgname/COPYING.LGPL" "$pkgdir/usr/share/$pkgname/COPYING.LGPL"
56 ln -s ../licenses/$pkgname/COPYING.SMALL $pkgdir/usr/share/$pkgname/COPYING.SMALL 65 ln -s "../licenses/$pkgname/COPYING.SMALL" "$pkgdir/usr/share/$pkgname/COPYING.SMALL"
57 rm -rf \
58 $pkgdir/usr/include/evas-1/Evas_Engine_*_X11.h \
59 $pkgdir/usr/include/ecore-x-1 \
60 $pkgdir/usr/lib/evas/modules/engines/*_x11 \
61 $pkgdir/usr/lib/ecore_evas/engines/x \
62 $pkgdir/usr/lib/libecore_x* \
63 $pkgdir/usr/lib/pkgconfig/ecore-x.pc \
64 $pkgdir/usr/lib/pkgconfig/evas-*-x11.pc
65} 66}
66 67
67package_efl_doc() { 68package_efl_doc() {
69 pkgdesc="Documentation for the Enlightenment Foundation Libraries"
70 arch=('any')
71 unset license depends provides conflicts install
68 cd "../.." 72 cd "../.."
69 rm -rf $pkgdir/usr 73 mkdir -p "$pkgdir/usr/share/doc/$pkgname"
70 make -j1 doc 74 cp -a doc/html "$pkgdir/usr/share/doc/$pkgname/html"
71 mkdir -p $pkgdir/usr/share/$pkgname 75 cp -a doc/latex "$pkgdir/usr/share/doc/$pkgname/latex"
72 cp -r doc/html $pkgdir/usr/share/$pkgname/html
73 cp -r doc/latex $pkgdir/usr/share/$pkgname/latex
74} 76}
75 77
76package_efl_x11() {
77 cd "../.."
78 rm -rf $pkgdir/usr
79 make -j1 DESTDIR="$pkgdir/" install
80 tar cf /tmp/xf.tar \
81 $pkgdir/usr/include/evas-1/Evas_Engine_*_X11.h \
82 $pkgdir/usr/include/ecore-x-1 \
83 $pkgdir/usr/lib/evas/modules/engines/*_x11 \
84 $pkgdir/usr/lib/ecore_evas/engines/x \
85 $pkgdir/usr/lib/libecore_x* \
86 $pkgdir/usr/lib/pkgconfig/ecore-x.pc \
87 $pkgdir/usr/lib/pkgconfig/evas-*-x11.pc
88 rm -rf $pkgdir/usr
89 tar -C / -P -xf /tmp/xf.tar
90}
diff --git a/pkgbuild/efl.install b/pkgbuild/efl.install
new file mode 100644
index 0000000000..8407f45769
--- /dev/null
+++ b/pkgbuild/efl.install
@@ -0,0 +1,16 @@
1post_install() {
2 update-mime-database usr/share/mime > /dev/null
3}
4
5post_upgrade() {
6 post_install
7}
8
9post_remove() {
10 post_install
11}
12
13
14
15
16