summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--pkgbuild/.gitignore1
-rw-r--r--pkgbuild/PKGBUILD (renamed from pkgbuild/PKGBUILD.in)35
3 files changed, 27 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index c51a1ab88..1ffacde3c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -743,7 +743,6 @@ config/mobile/Makefile
743$po_makefile_in 743$po_makefile_in
744cmakeconfig/ElementaryConfig.cmake 744cmakeconfig/ElementaryConfig.cmake
745cmakeconfig/ElementaryConfigVersion.cmake 745cmakeconfig/ElementaryConfigVersion.cmake
746pkgbuild/PKGBUILD
747]) 746])
748 747
749AC_OUTPUT 748AC_OUTPUT
diff --git a/pkgbuild/.gitignore b/pkgbuild/.gitignore
index 913d3ff89..39ef43471 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 6f1927cf5..6103dd058 100644
--- a/pkgbuild/PKGBUILD.in
+++ b/pkgbuild/PKGBUILD
@@ -1,15 +1,34 @@
1# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org> 1# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org>
2pkgname=('elementary' 'elementary_test' 'elementary_doc') 2pkgname=elementary-git
3pkgver=@VERSION@ 3_pkgname=${pkgname%-*}
4true && pkgname=('elementary-git' 'elementary_test-git' 'elementary_doc-git')
5pkgver=1.8.99.8967.a1cfce6
4pkgrel=1 6pkgrel=1
5pkgdesc="Enlightenment GUI toolkit - GIT development snapshot" 7pkgdesc="Enlightenment GUI toolkit - GIT development snapshot"
6arch=('i686' 'x86_64' 'arm') 8arch=('i686' 'x86_64' 'arm')
7url="http://www.enlightenment.org" 9url="http://www.enlightenment.org"
8license=('LGPL2.1' 'CCPL:cc-by-sa') 10license=('LGPL2.1' 'CCPL:cc-by-sa')
9makedepends=('doxygen' 'imagemagick') 11makedepends=('doxygen' 'imagemagick' 'git')
10depends=('efl' 'evas_generic_loaders') 12depends=('efl-git')
11optdepends=('emotion_generic_players') 13 [[ ! $(pacman -T ewebkit-svn) ]] && depends+=('ewebkit-svn') # webkit-efl support is detected at build time
14 [[ ! $(pacman -T elocation-git) ]] && depends+=('elocation-git') # elocation support is detected at build time
15 [[ ! $(pacman -T libeweather-git) ]] && depends+=('libeweather-git') # eweather support is detected at build time
16optdepends=('emotion_generic_players' 'evas_generic_loaders')
12options=('!libtool' 'debug') 17options=('!libtool' 'debug')
18provides=('elementary')
19
20pkgver() {
21 cd "../.."
22
23 for _i in v_maj v_min v_mic; do
24 local v_ver=$v_ver.$(grep -m 1 $_i configure.ac | sed 's/m4//' | grep -o "[[:digit:]]*")
25 done
26
27 v_ver=$(awk -F , -v v_ver=${v_ver#.} '/^AC_INIT/ {gsub(/v_ver/, v_ver); gsub(/[\[\] -]/, ""); print $2}' configure.ac)
28
29 printf "$v_ver.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
30}
31
13build() { 32build() {
14 cd "../.." 33 cd "../.."
15 export CFLAGS="$CFLAGS -fvisibility=hidden -fomit-frame-pointer" 34 export CFLAGS="$CFLAGS -fvisibility=hidden -fomit-frame-pointer"
@@ -25,7 +44,7 @@ build() {
25# make -k check 44# make -k check
26#} 45#}
27 46
28package_elementary() { 47package_elementary-git() {
29 cd "../.." 48 cd "../.."
30 make -j1 DESTDIR="$pkgdir/" install 49 make -j1 DESTDIR="$pkgdir/" install
31 install -Dm644 README "$pkgdir/usr/share/$pkgname/README" 50 install -Dm644 README "$pkgdir/usr/share/$pkgname/README"
@@ -43,7 +62,7 @@ package_elementary() {
43 rm -rf "$pkgdir/usr/share/elementary/"{examples,images,objects} 62 rm -rf "$pkgdir/usr/share/elementary/"{examples,images,objects}
44} 63}
45 64
46package_elementary_test() { 65package_elementary_test-git() {
47 pkgdesc="Test application for Elementary" 66 pkgdesc="Test application for Elementary"
48 depends=('elementary') 67 depends=('elementary')
49 68
@@ -58,7 +77,7 @@ package_elementary_test() {
58 rm -rf "$pkgdir/usr/share/"{icons,locale} 77 rm -rf "$pkgdir/usr/share/"{icons,locale}
59} 78}
60 79
61package_elementary_doc() { 80package_elementary_doc-git() {
62 pkgdesc="Documentation for Elementary" 81 pkgdesc="Documentation for Elementary"
63 arch=('any') 82 arch=('any')
64 unset depends optdepends 83 unset depends optdepends