summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-06-07 20:40:28 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-06-07 20:40:28 +0900
commitba44d1205088c0c03b6c65ed13a3b8f6bff19845 (patch)
treef9368a3e5a04b60200d624ec99905edf22df89b6
parentfc2cb4123d4f2c6c33c01553566ebf3370d03670 (diff)
add pkgbuild
Diffstat (limited to '')
-rw-r--r--.gitignore8
-rw-r--r--configure.ac1
-rw-r--r--pkgbuild/PKGBUILD.in82
3 files changed, 91 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index f01e8768a..e99b8e12e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,6 +11,7 @@ Makefile.in
11*.so 11*.so
12*.edj 12*.edj
13*.cmake 13*.cmake
14elementary-*-doc.tar.bz2
14src/lib/note.txt 15src/lib/note.txt
15src/lib/Elementary.h 16src/lib/Elementary.h
16elementary_config 17elementary_config
@@ -201,3 +202,10 @@ src/examples/win_example
201src/examples/dayselector_example 202src/examples/dayselector_example
202src/bin/elm_prefs_cc 203src/bin/elm_prefs_cc
203data/objects/test_prefs.epb 204data/objects/test_prefs.epb
205doc/html
206doc/man
207doc/latex
208pkgbuild/PKGBUILD
209pkgbuild/pkg
210pkgbuild/src
211pkgbuild/*.tar.xz
diff --git a/configure.ac b/configure.ac
index 2f9445a20..69fc6842a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -831,6 +831,7 @@ config/mobile/Makefile
831$po_makefile_in 831$po_makefile_in
832cmakeconfig/ElementaryConfig.cmake 832cmakeconfig/ElementaryConfig.cmake
833cmakeconfig/ElementaryConfigVersion.cmake 833cmakeconfig/ElementaryConfigVersion.cmake
834pkgbuild/PKGBUILD
834]) 835])
835 836
836##################################################################### 837#####################################################################
diff --git a/pkgbuild/PKGBUILD.in b/pkgbuild/PKGBUILD.in
new file mode 100644
index 000000000..27e19ea52
--- /dev/null
+++ b/pkgbuild/PKGBUILD.in
@@ -0,0 +1,82 @@
1# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org>
2pkgname=('elementary' 'elementary_test' 'elementary_doc')
3pkgver=@VERSION@
4pkgrel=1
5pkgdesc="Eklementary GUI toolkit - GIT development snapshot (Ecore, Eldbus, Edje, Eet, Eeze, Efreet, Eina, Eio, Embryo, Emotion, Eo, Ephysics, Ethumb, & Evas)"
6arch=('i686' 'x86_64' 'arm')
7url="http://www.enlightenment.org"
8license=('LGPL2')
9makedepends=('doxygen' 'imagemagick')
10optdepends=('emotion_generic_players')
11depends=('efl' 'evas_generic_loaders')
12provides=("elementary=$pkgver" 'elementary-svn')
13options=('strip' 'docs' 'zipman' '!libtool' 'debug')
14buildflags="-O2 -g -fvisibility=hidden -fomit-frame-pointer"
15build() {
16 cd "../.."
17 make clean distclean
18 ./configure --prefix=/usr \
19 --disable-static
20 make
21}
22
23#check() {
24# cd "../.."
25# make -k check
26#}
27
28package_elementary() {
29 cd "../.."
30 rm -rf $pkgdir/usr
31 make -j1 DESTDIR="$pkgdir/" install
32 install -Dm644 README $pkgdir/usr/share/$pkgname/README
33 install -Dm644 NEWS $pkgdir/usr/share/$pkgname/NEWS
34 install -Dm644 ChangeLog $pkgdir/usr/share/$pkgname/ChangeLog
35 install -Dm644 AUTHORS $pkgdir/usr/share/$pkgname/AUTHORS
36 install -Dm644 COMPLIANCE $pkgdir/usr/share/$pkgname/COMPLIANCE
37 install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
38 install -Dm644 COPYING.images $pkgdir/usr/share/licenses/$pkgname/COPYING.images
39 ln -s ../licenses/$pkgname/COPYING $pkgdir/usr/share/$pkgname/COPYING
40 ln -s ../licenses/$pkgname/COPYING.images $pkgdir/usr/share/$pkgname/COPYING.images
41 rm -rf $pkgdir/usr/bin/elementary_test*
42 rm -rf $pkgdir/usr/lib/elementary/modules/test_entry
43 rm -rf $pkgdir/usr/lib/elementary/modules/test_map
44 rm -rf $pkgdir/usr/lib/elementary_testql.so
45 rm -rf $pkgdir/usr/share/applications/elementary_test.desktop
46 rm -rf $pkgdir/usr/share/elementary/examples
47 rm -rf $pkgdir/usr/share/elementary/images
48 rm -rf $pkgdir/usr/share/elementary/objects
49}
50
51package_elementary_test() {
52 cd "../.."
53 rm -rf $pkgdir/usr
54 make -j1 DESTDIR="$pkgdir/" install
55 rm -rf $pkgdir/usr/include
56 rm -rf $pkgdir/usr/bin/elementary_codegen
57 rm -rf $pkgdir/usr/bin/elementary_config
58 rm -rf $pkgdir/usr/bin/elementary_quicklaunch
59 rm -rf $pkgdir/usr/bin/elementary_run
60 rm -rf $pkgdir/usr/bin/elm_prefs_cc
61 rm -rf $pkgdir/usr/lib/cmake
62 rm -rf $pkgdir/usr/lib/edje
63 rm -rf $pkgdir/usr/lib/elementary
64 rm -rf $pkgdir/usr/lib/libelementary.so*
65 rm -rf $pkgdir/usr/lib/pkgconfig
66 rm -rf $pkgdir/usr/share/applications/elementary_config.desktop
67 rm -rf $pkgdir/usr/share/elementary/config
68 rm -rf $pkgdir/usr/share/elementary/edje_externals/icons.edj
69 rm -rf $pkgdir/usr/share/elementary/examples
70 rm -rf $pkgdir/usr/share/elementary/themes
71 rm -rf $pkgdir/usr/share/icons/elementary.png
72 rm -rf $pkgdir/usr/share/locale/
73}
74
75package_elementary_doc() {
76 cd "../.."
77 rm -rf $pkgdir/usr
78 make -j1 doc
79 mkdir -p $pkgdir/usr/share/$pkgname
80 cp -r doc/html $pkgdir/usr/share/$pkgname/html
81 cp -r doc/latex $pkgdir/usr/share/$pkgname/latex
82}