summaryrefslogtreecommitdiff
path: root/pkgbuild/PKGBUILD
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-01-09 19:01:27 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-01-09 19:01:27 +0900
commite54416200bf4e2e544237424b1b8fb09097b7c08 (patch)
treec8b75d64167007dbd068b9de98d66406ecb4155f /pkgbuild/PKGBUILD
parentb84787bf5751152419f5994093b9f1e01a416913 (diff)
Update PKGBUILD to work with release tarballs as well as Git clones
Reviewers: raster Reviewed By: raster CC: cedric Differential Revision: https://phab.enlightenment.org/D439
Diffstat (limited to 'pkgbuild/PKGBUILD')
-rw-r--r--pkgbuild/PKGBUILD86
1 files changed, 49 insertions, 37 deletions
diff --git a/pkgbuild/PKGBUILD b/pkgbuild/PKGBUILD
index cb8fdd6713..0af53f8060 100644
--- a/pkgbuild/PKGBUILD
+++ b/pkgbuild/PKGBUILD
@@ -1,13 +1,12 @@
1# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org> 1# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org>
2pkgname=('efl-git' 'efl_doc-git') 2pkgname=('efl' 'efl_doc')
3_pkgname=${pkgname%-*} 3[[ -d ../.git ]] && pkgname=('efl-git' 'efl_doc-git')
4pkgver=1.8.99.24060.a30d82c 4pkgver=1.8.99.24136.8c094d1
5pkgrel=1 5pkgrel=1
6pkgdesc="Enlightenment Foundation Libraries - GIT development snapshot (Ecore, Eldbus, Edje, Eet, Eeze, Efreet, Eina, Eio, Embryo, Emotion, Eo, Ephysics, Ethumb, & Evas)" 6pkgdesc="Enlightenment Foundation Libraries - GIT development snapshot"
7arch=('i686' 'x86_64' 'arm') 7arch=('i686' 'x86_64' 'arm')
8url="http://www.enlightenment.org" 8url="http://www.enlightenment.org"
9license=('BSD' 'LGPL2.1' 'GPL2' 'custom') 9license=('BSD' 'LGPL2.1' 'GPL2' 'custom')
10makedepends=('doxygen' 'check')
11depends=('bullet' 'libpng' 'libjpeg-turbo' 10depends=('bullet' 'libpng' 'libjpeg-turbo'
12 'gstreamer' 'gst-plugins-base-libs' 'gst-plugins-base' 11 'gstreamer' 'gst-plugins-base-libs' 'gst-plugins-base'
13 'gst-plugins-good' 'gst-plugins-bad' 12 'gst-plugins-good' 'gst-plugins-bad'
@@ -17,29 +16,24 @@ depends=('bullet' 'libpng' 'libjpeg-turbo'
17 'libxdamage' 'libxdmcp' 'libxext' 'libxfixes' 'libxinerama' 16 'libxdamage' 'libxdmcp' 'libxext' 'libxfixes' 'libxinerama'
18 'libxi' 'libxrandr' 'libxrender' 'libxss' 'libxtst' 17 'libxi' 'libxrandr' 'libxrender' 'libxss' 'libxtst'
19 'libxcursor' 'libxp' 'libgl' 'giflib' 'libwebp' 'harfbuzz' 18 'libxcursor' 'libxp' 'libgl' 'giflib' 'libwebp' 'harfbuzz'
20 'wayland' 'avahi' 'scim') 19 'wayland' 'avahi' 'scim')
21[[ ! $(pacman -T "openjpeg") ]] && depends+=('openjpeg') #jpeg2k loader is autodetected at build time 20[[ ! $(pacman -T "openjpeg") ]] && depends+=('openjpeg') #jpeg2k loader is autodetected at build time
22makedepends=('git') 21makedepends=('doxygen' 'check')
23provides=("ecore=$pkgver" "eldbus=$pkgver" "edje=$pkgver" 22[[ -d ../.git ]] && makedepends+=('git')
24 "eet=$pkgver" "eeze=$pkgver" "efreet=$pkgver" 23options=('debug')
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 24install=efl.install
31 25
32pkgver() { 26pkgver() {
33 cd "../.." 27 cd "../.."
34 28
35 local efl_version=$(grep -m 1 EFL_VERSION configure.ac | grep -o "[[:digit:]]*" | tr '\n' '.') 29 if [[ -d .git ]]; then
36 efl_version=$(awk -F , -v efl_version=${efl_version%.} '/^AC_INIT/ {gsub(/efl_version/, efl_version); gsub(/[\[\] -]/, ""); print $2}' configure.ac) 30 local efl_version=$(grep -m 1 EFL_VERSION configure.ac | grep -o "[[:digit:]]*" | tr '\n' '.')
37 31 efl_version=$(awk -F , -v efl_version=${efl_version%.} '/^AC_INIT/ {gsub(/efl_version/, efl_version); gsub(/[\[\] -]/, ""); print $2}' configure.ac)
38 printf "$efl_version.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
39}
40 32
41prepare() { 33 printf "$efl_version.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
42 sed -i 's/env python$/&2/' "../../src/scripts/eina/eina-bench-cmp" 34 else
35 ./configure --version | awk '/^efl/ {gsub("-", ""); print $NF}'
36 fi
43} 37}
44 38
45build() { 39build() {
@@ -47,7 +41,8 @@ build() {
47 export CFLAGS="$CFLAGS -fvisibility=hidden -fomit-frame-pointer" 41 export CFLAGS="$CFLAGS -fvisibility=hidden -fomit-frame-pointer"
48 export CXXFLAGS="$CXXFLAGS -fvisibility=hidden -fomit-frame-pointer" 42 export CXXFLAGS="$CXXFLAGS -fvisibility=hidden -fomit-frame-pointer"
49 [[ -e Makefile ]] && make clean distclean 43 [[ -e Makefile ]] && make clean distclean
50 ./configure --prefix=/usr \ 44 [[ -e autogen.sh ]] && _configure=autogen.sh || _configure=configure
45 ./$_configure --prefix=/usr \
51 --disable-static --disable-tslib --enable-fb \ 46 --disable-static --disable-tslib --enable-fb \
52 --enable-xinput22 --enable-multisense --enable-systemd \ 47 --enable-xinput22 --enable-multisense --enable-systemd \
53 --enable-image-loader-webp --enable-harfbuzz \ 48 --enable-image-loader-webp --enable-harfbuzz \
@@ -62,31 +57,48 @@ build() {
62# make -k check 57# make -k check
63#} 58#}
64 59
65package_efl-git() { 60package_efl() {
61 provides+=("ecore=$pkgver" "eldbus=$pkgver" "edje=$pkgver"
62 "eet=$pkgver" "eeze=$pkgver" "efreet=$pkgver"
63 "eina=$pkgver" "eio=$pkgver" "embryo=$pkgver" "emotion=$pkgver"
64 "ephysics=$pkgver" "ethumb=$pkgver" "evas=$pkgver")
65 conflicts+=('ecore' 'edje' 'eet' 'eeze' 'efreet' 'eina' 'eio' 'embryo' 'emotion'
66 'ethumb' 'evas')
66 cd "../.." 67 cd "../.."
67 make -j1 DESTDIR="$pkgdir/" install 68 make -j1 DESTDIR="$pkgdir/" install
68 install -Dm644 README "$pkgdir/usr/share/$pkgname/README" 69 install -Dm644 README "$pkgdir/usr/share/doc/${pkgname%-git}/README"
69 install -Dm644 NEWS "$pkgdir/usr/share/$pkgname/NEWS" 70 install -Dm644 NEWS "$pkgdir/usr/share/doc/${pkgname%-git}/NEWS"
70 install -Dm644 ChangeLog "$pkgdir/usr/share/$pkgname/ChangeLog" 71 install -Dm644 ChangeLog "$pkgdir/usr/share/doc/${pkgname%-git}/ChangeLog"
71 install -Dm644 AUTHORS "$pkgdir/usr/share/$pkgname/AUTHORS" 72 install -Dm644 AUTHORS "$pkgdir/usr/share/doc/${pkgname%-git}/AUTHORS"
72 install -Dm644 COMPLIANCE "$pkgdir/usr/share/$pkgname/COMPLIANCE" 73 install -Dm644 COMPLIANCE "$pkgdir/usr/share/doc/${pkgname%-git}/COMPLIANCE"
73 install -Dm644 licenses/COPYING.BSD "$pkgdir/usr/share/licenses/$pkgname/COPYING.BSD" 74 install -Dm644 licenses/COPYING.BSD "$pkgdir/usr/share/licenses/$pkgname/COPYING.BSD"
74 install -Dm644 licenses/COPYING.GPL "$pkgdir/usr/share/licenses/$pkgname/COPYING.GPL" 75 install -Dm644 licenses/COPYING.GPL "$pkgdir/usr/share/licenses/$pkgname/COPYING.GPL"
75 install -Dm644 licenses/COPYING.LGPL "$pkgdir/usr/share/licenses/$pkgname/COPYING.LGPL" 76 install -Dm644 licenses/COPYING.LGPL "$pkgdir/usr/share/licenses/$pkgname/COPYING.LGPL"
76 install -Dm644 licenses/COPYING.SMALL "$pkgdir/usr/share/licenses/$pkgname/COPYING.SMALL" 77 install -Dm644 licenses/COPYING.SMALL "$pkgdir/usr/share/licenses/$pkgname/COPYING.SMALL"
77 ln -s "../licenses/$pkgname/COPYING.BSD" "$pkgdir/usr/share/$pkgname/COPYING.BSD" 78 ln -s "../licenses/$pkgname/COPYING.BSD" "$pkgdir/usr/share/doc/${pkgname%-git}/COPYING.BSD"
78 ln -s "../licenses/$pkgname/COPYING.GPL" "$pkgdir/usr/share/$pkgname/COPYING.GPL" 79 ln -s "../licenses/$pkgname/COPYING.GPL" "$pkgdir/usr/share/doc/${pkgname%-git}/COPYING.GPL"
79 ln -s "../licenses/$pkgname/COPYING.LGPL" "$pkgdir/usr/share/$pkgname/COPYING.LGPL" 80 ln -s "../licenses/$pkgname/COPYING.LGPL" "$pkgdir/usr/share/doc/${pkgname%-git}/COPYING.LGPL"
80 ln -s "../licenses/$pkgname/COPYING.SMALL" "$pkgdir/usr/share/$pkgname/COPYING.SMALL" 81 ln -s "../licenses/$pkgname/COPYING.SMALL" "$pkgdir/usr/share/doc/${pkgname%-git}/COPYING.SMALL"
81} 82}
82 83
83package_efl_doc-git() { 84package_efl-git() {
85 provides=("efl=$pkgver")
86 conflicts=('efl')
87 package_efl
88}
89
90package_efl_doc() {
84 pkgdesc="Documentation for the Enlightenment Foundation Libraries" 91 pkgdesc="Documentation for the Enlightenment Foundation Libraries"
85 arch=('any') 92 arch=('any')
86 unset license depends provides conflicts install 93 unset license depends install
87 cd "../.." 94 cd "../.."
88 mkdir -p "$pkgdir/usr/share/doc/$pkgname" 95 mkdir -p "$pkgdir/usr/share/doc/${pkgname%-git}"
89 cp -a doc/html "$pkgdir/usr/share/doc/$pkgname/html" 96 cp -a doc/html "$pkgdir/usr/share/doc/${pkgname%-git}/html"
90 cp -a doc/latex "$pkgdir/usr/share/doc/$pkgname/latex" 97 cp -a doc/latex "$pkgdir/usr/share/doc/${pkgname%-git}/latex"
91} 98}
92 99
100package_efl_doc-git() {
101 provides=("efl_doc=$pkgver")
102 conflicts=('efl_doc')
103 package_efl_doc
104}