summaryrefslogtreecommitdiff
path: root/pkgbuild/PKGBUILD.in
diff options
context:
space:
mode:
authorDoug Newgard <scimmia22@outlook.com>2013-10-26 23:56:25 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-10-26 23:56:25 +0900
commitb10243a5ea385e3456d7456f2765de3734677518 (patch)
treeba663ac2f2038f858507ce178a830abceeae7512 /pkgbuild/PKGBUILD.in
parentc4a45c75b15a3bcfb8bfd089a02cdaff3b7102f0 (diff)
PKGBUILD cleanup
Summary: Some of the files in the "efl" package (emotion engine and others IIRC) were linked to libs in the efl_x11 package. This created a circular dep requiring both to be installed. Should just be one package in that case. LGPL2 is actually LGPL2.1. Added 'custom' to license array to cover COPYING.SMALL. There is no 'dbus-core' package, it's part of 'dbus' now. Doesn't build without 'check' installed. provides_efl doesn't work, changed to just provides. Got rid of tabs in depends and provides, replaced with spaces. No need to add default 'strip', 'docs', and 'zipman' options, if someone want to override them, there's no reason to stop them. buildflags doesn't work as a variable, added them to CFLAGS and CXXFLAGS manually. -O2 and -g are already included by default, if someone wants to change them on their system, there's no reason to override them. Add install script to update mime database. Change shebang on eina-bench-cmp so it runs with python2, python is 3 on Arch. make dist doesn't tar Makefile, so we need to check that it exists before running "make clean distclean". Otherwise the build just fails. Building of docs should be done in the build function. Quoted all uses of $pkgdir and $srcdir Each package function gets it's own $pkgdir, so rm-ing them at the beginning of the function isn't needed. Use cp -a instead of cp -r to make sure permissions are preserved. Set correct pkgdesc, arch, license, depends, provides, and install for the doc package. Reviewers: raster Reviewed By: raster CC: cedric Differential Revision: https://phab.enlightenment.org/D240
Diffstat (limited to 'pkgbuild/PKGBUILD.in')
-rw-r--r--pkgbuild/PKGBUILD.in107
1 files changed, 47 insertions, 60 deletions
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}