summaryrefslogtreecommitdiff
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
parent3d132d722f057d7eeb2363cba6c95184327f0559 (diff)
pkgbuild: follow aur efl-git version naming.
-rw-r--r--configure.ac1
-rw-r--r--pkgbuild/.gitignore1
-rw-r--r--pkgbuild/PKGBUILD (renamed from pkgbuild/PKGBUILD.in)24
3 files changed, 18 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index c03a33105d..29c67aeb56 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3758,7 +3758,6 @@ src/lib/eina/eina_config.h
3758src/lib/ecore_x/ecore_x_version.h 3758src/lib/ecore_x/ecore_x_version.h
3759src/lib/efl/Efl_Config.h 3759src/lib/efl/Efl_Config.h
3760spec/efl.spec 3760spec/efl.spec
3761pkgbuild/PKGBUILD
3762pc/evil.pc 3761pc/evil.pc
3763pc/escape.pc 3762pc/escape.pc
3764pc/eina.pc 3763pc/eina.pc
diff --git a/pkgbuild/.gitignore b/pkgbuild/.gitignore
index 913d3ff892..39ef434711 100644
--- a/pkgbuild/.gitignore
+++ b/pkgbuild/.gitignore
@@ -1,4 +1,3 @@
1/PKGBUILD
2/pkg 1/pkg
3/src 2/src
4/*.tar.xz 3/*.tar.xz
diff --git a/pkgbuild/PKGBUILD.in b/pkgbuild/PKGBUILD
index 6bb72af497..6f383f20fb 100644
--- a/pkgbuild/PKGBUILD.in
+++ b/pkgbuild/PKGBUILD
@@ -1,6 +1,7 @@
1# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org> 1# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org>
2pkgname=('efl' 'efl_doc') 2pkgname=('efl-git' 'efl_doc-git')
3pkgver=@VERSION@ 3_pkgname=${pkgname%-*}
4pkgver=1.8.99.23938.7299d55
4pkgrel=1 5pkgrel=1
5pkgdesc="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 (Ecore, Eldbus, Edje, Eet, Eeze, Efreet, Eina, Eio, Embryo, Emotion, Eo, Ephysics, Ethumb, & Evas)"
6arch=('i686' 'x86_64' 'arm') 7arch=('i686' 'x86_64' 'arm')
@@ -17,15 +18,26 @@ depends=('bullet' 'libpng' 'libjpeg-turbo' 'gstreamer0.10'
17 'libxi' 'libxrandr' 'libxrender' 'libxss' 'libxtst' 18 'libxi' 'libxrandr' 'libxrender' 'libxss' 'libxtst'
18 'libxcursor' 'libxp' 'libgl' 'giflib' 'libwebp' 'harfbuzz' 19 'libxcursor' 'libxp' 'libgl' 'giflib' 'libwebp' 'harfbuzz'
19 'wayland' 'sdl') 20 'wayland' 'sdl')
21[[ ! $(pacman -T "openjpeg") ]] && depends+=('openjpeg') #jpeg2k loader is autodetected at build time
22makedepends=('git')
20provides=("ecore=$pkgver" "eldbus=$pkgver" "edje=$pkgver" 23provides=("ecore=$pkgver" "eldbus=$pkgver" "edje=$pkgver"
21 "eet=$pkgver" "eeze=$pkgver" "efreet=$pkgver" 24 "eet=$pkgver" "eeze=$pkgver" "efreet=$pkgver"
22 "eina=$pkgver" "eio=$pkgver" "embryo=$pkgver" "emotion=$pkgver" 25 "eina=$pkgver" "eio=$pkgver" "embryo=$pkgver" "emotion=$pkgver"
23 "ephysics=$pkgver" "ethumb=$pkgver" "evas=$pkgver" "efl-git") 26 "ephysics=$pkgver" "ethumb=$pkgver" "evas=$pkgver" "$_pkgname=$pkgver")
24conflicts=('ecore' 'edje' 'eet' 'eeze' 'efreet' 'eina' 'eio' 'embryo' 'emotion' 27conflicts=('ecore' 'edje' 'eet' 'eeze' 'efreet' 'eina' 'eio' 'embryo' 'emotion'
25 'ethumb' 'evas' 'efl-git') 28 'ethumb' 'evas' "$_pkgname")
26options=('!libtool' 'debug') 29options=('!libtool' 'debug')
27install=efl.install 30install=efl.install
28 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
29prepare() { 41prepare() {
30 sed -i 's/env python$/&2/' "../../src/scripts/eina/eina-bench-cmp" 42 sed -i 's/env python$/&2/' "../../src/scripts/eina/eina-bench-cmp"
31} 43}
@@ -49,7 +61,7 @@ build() {
49# make -k check 61# make -k check
50#} 62#}
51 63
52package_efl() { 64package_efl-git() {
53 cd "../.." 65 cd "../.."
54 make -j1 DESTDIR="$pkgdir/" install 66 make -j1 DESTDIR="$pkgdir/" install
55 install -Dm644 README "$pkgdir/usr/share/$pkgname/README" 67 install -Dm644 README "$pkgdir/usr/share/$pkgname/README"
@@ -67,7 +79,7 @@ package_efl() {
67 ln -s "../licenses/$pkgname/COPYING.SMALL" "$pkgdir/usr/share/$pkgname/COPYING.SMALL" 79 ln -s "../licenses/$pkgname/COPYING.SMALL" "$pkgdir/usr/share/$pkgname/COPYING.SMALL"
68} 80}
69 81
70package_efl_doc() { 82package_efl_doc-git() {
71 pkgdesc="Documentation for the Enlightenment Foundation Libraries" 83 pkgdesc="Documentation for the Enlightenment Foundation Libraries"
72 arch=('any') 84 arch=('any')
73 unset license depends provides conflicts install 85 unset license depends provides conflicts install