summaryrefslogtreecommitdiff
path: root/pkgbuild/PKGBUILD
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2013-12-12 11:04:43 +0900
committerCedric BAIL <cedric.bail@samsung.com>2013-12-12 11:05:13 +0900
commit87be907144aaa5023b00e6f788d64e7ca3f1ff17 (patch)
tree24f47ac7c2368ed788f5b7fb20c1ab406fcd9f6d /pkgbuild/PKGBUILD
parent3d132d722f057d7eeb2363cba6c95184327f0559 (diff)
pkgbuild: follow aur efl-git version naming.
Diffstat (limited to 'pkgbuild/PKGBUILD')
-rw-r--r--pkgbuild/PKGBUILD91
1 files changed, 91 insertions, 0 deletions
diff --git a/pkgbuild/PKGBUILD b/pkgbuild/PKGBUILD
new file mode 100644
index 0000000000..6f383f20fb
--- /dev/null
+++ b/pkgbuild/PKGBUILD
@@ -0,0 +1,91 @@
1# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org>
2pkgname=('efl-git' 'efl_doc-git')
3_pkgname=${pkgname%-*}
4pkgver=1.8.99.23938.7299d55
5pkgrel=1
6pkgdesc="Enlightenment Foundation Libraries - GIT development snapshot (Ecore, Eldbus, Edje, Eet, Eeze, Efreet, Eina, Eio, Embryo, Emotion, Eo, Ephysics, Ethumb, & Evas)"
7arch=('i686' 'x86_64' 'arm')
8url="http://www.enlightenment.org"
9license=('BSD' 'LGPL2.1' 'GPL2' 'custom')
10makedepends=('doxygen' 'check')
11depends=('bullet' 'libpng' 'libjpeg-turbo' 'gstreamer0.10'
12 'gstreamer0.10-base' 'gstreamer0.10-good'
13 'gstreamer0.10-bad' 'gstreamer0.10-ugly' 'gstreamer0.10-ffmpeg'
14 'zlib' 'lua' 'libtiff' 'openssl' 'util-linux' 'curl' 'dbus'
15 'glibc' 'fontconfig' 'freetype2' 'fribidi' 'libpulse'
16 'libsndfile' 'systemd' 'libx11' 'libxau' 'libxcomposite'
17 'libxdamage' 'libxdmcp' 'libxext' 'libxfixes' 'libxinerama'
18 'libxi' 'libxrandr' 'libxrender' 'libxss' 'libxtst'
19 'libxcursor' 'libxp' 'libgl' 'giflib' 'libwebp' 'harfbuzz'
20 'wayland' 'sdl')
21[[ ! $(pacman -T "openjpeg") ]] && depends+=('openjpeg') #jpeg2k loader is autodetected at build time
22makedepends=('git')
23provides=("ecore=$pkgver" "eldbus=$pkgver" "edje=$pkgver"
24 "eet=$pkgver" "eeze=$pkgver" "efreet=$pkgver"
25 "eina=$pkgver" "eio=$pkgver" "embryo=$pkgver" "emotion=$pkgver"
26 "ephysics=$pkgver" "ethumb=$pkgver" "evas=$pkgver" "$_pkgname=$pkgver")
27conflicts=('ecore' 'edje' 'eet' 'eeze' 'efreet' 'eina' 'eio' 'embryo' 'emotion'
28 'ethumb' 'evas' "$_pkgname")
29options=('!libtool' 'debug')
30install=efl.install
31
32pkgver() {
33 cd "../.."
34
35 local efl_version=$(grep -m 1 EFL_VERSION configure.ac | grep -o "[[:digit:]]*" | tr '\n' '.')
36 efl_version=$(awk -F , -v efl_version=${efl_version%.} '/^AC_INIT/ {gsub(/efl_version/, efl_version); gsub(/[\[\] -]/, ""); print $2}' configure.ac)
37
38 printf "$efl_version.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
39}
40
41prepare() {
42 sed -i 's/env python$/&2/' "../../src/scripts/eina/eina-bench-cmp"
43}
44
45build() {
46 cd "../.."
47 export CFLAGS="$CFLAGS -fvisibility=hidden -fomit-frame-pointer"
48 export CXXFLAGS="$CXXFLAGS -fvisibility=hidden -fomit-frame-pointer"
49 [[ -e Makefile ]] && make clean distclean
50 ./configure --prefix=/usr \
51 --disable-static --disable-tslib --enable-fb \
52 --enable-xinput22 --enable-multisense --enable-systemd \
53 --enable-image-loader-webp --enable-harfbuzz \
54 --enable-wayland --enable-drm --enable-sdl
55 make
56 make -j1 doc
57}
58
59#check() {
60# cd "../.."
61# make -k check
62#}
63
64package_efl-git() {
65 cd "../.."
66 make -j1 DESTDIR="$pkgdir/" install
67 install -Dm644 README "$pkgdir/usr/share/$pkgname/README"
68 install -Dm644 NEWS "$pkgdir/usr/share/$pkgname/NEWS"
69 install -Dm644 ChangeLog "$pkgdir/usr/share/$pkgname/ChangeLog"
70 install -Dm644 AUTHORS "$pkgdir/usr/share/$pkgname/AUTHORS"
71 install -Dm644 COMPLIANCE "$pkgdir/usr/share/$pkgname/COMPLIANCE"
72 install -Dm644 licenses/COPYING.BSD "$pkgdir/usr/share/licenses/$pkgname/COPYING.BSD"
73 install -Dm644 licenses/COPYING.GPL "$pkgdir/usr/share/licenses/$pkgname/COPYING.GPL"
74 install -Dm644 licenses/COPYING.LGPL "$pkgdir/usr/share/licenses/$pkgname/COPYING.LGPL"
75 install -Dm644 licenses/COPYING.SMALL "$pkgdir/usr/share/licenses/$pkgname/COPYING.SMALL"
76 ln -s "../licenses/$pkgname/COPYING.BSD" "$pkgdir/usr/share/$pkgname/COPYING.BSD"
77 ln -s "../licenses/$pkgname/COPYING.GPL" "$pkgdir/usr/share/$pkgname/COPYING.GPL"
78 ln -s "../licenses/$pkgname/COPYING.LGPL" "$pkgdir/usr/share/$pkgname/COPYING.LGPL"
79 ln -s "../licenses/$pkgname/COPYING.SMALL" "$pkgdir/usr/share/$pkgname/COPYING.SMALL"
80}
81
82package_efl_doc-git() {
83 pkgdesc="Documentation for the Enlightenment Foundation Libraries"
84 arch=('any')
85 unset license depends provides conflicts install
86 cd "../.."
87 mkdir -p "$pkgdir/usr/share/doc/$pkgname"
88 cp -a doc/html "$pkgdir/usr/share/doc/$pkgname/html"
89 cp -a doc/latex "$pkgdir/usr/share/doc/$pkgname/latex"
90}
91