summaryrefslogtreecommitdiff
path: root/pkgbuild/PKGBUILD.in
diff options
context:
space:
mode:
authorDoug Newgard <scimmia22@outlook.com>2013-06-13 14:25:49 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-06-13 14:25:50 +0900
commitaf5163021ca7311f90e0112032da07ece5293f51 (patch)
treebc4210eb63b90abc082ce0e856a82e4741e0de06 /pkgbuild/PKGBUILD.in
parent24b440c7eb8568281504e6d6109c6ad638c3571b (diff)
PKGBUILD cleanup
pkgdesc should not include the name of the package (was misspelled anyway) Licenses were wrong, LGPL2.1, not LGPL2 and missing CCPL Doesn't need to provide itself or elementary-svn Shouldn't override user selected options, if they manually add !strip, !docs, or !zipman, that should be respected unless there's a specific reason the option needs to be as specified Shouldn't override user build flags, if they manaually change -g or -O2, that should be respected unless there's a specific reason that exact build flag is required. Doesn't need to disable-static, there are none anyway make doc should be run in the build function Don't need to rm -rf $pkgdir/usr, each package function has it's own $pkgdir and they are all cleared each time makepkg is run All paths which include a variable should be quoted Should not put another copy of LGPL2.1 on the system, it's in common for a reason
Diffstat (limited to 'pkgbuild/PKGBUILD.in')
-rw-r--r--pkgbuild/PKGBUILD.in83
1 files changed, 35 insertions, 48 deletions
diff --git a/pkgbuild/PKGBUILD.in b/pkgbuild/PKGBUILD.in
index d75a0e449..761823106 100644
--- a/pkgbuild/PKGBUILD.in
+++ b/pkgbuild/PKGBUILD.in
@@ -2,22 +2,22 @@
2pkgname=('elementary' 'elementary_test' 'elementary_doc') 2pkgname=('elementary' 'elementary_test' 'elementary_doc')
3pkgver=@VERSION@ 3pkgver=@VERSION@
4pkgrel=1 4pkgrel=1
5pkgdesc="Eklementary GUI toolkit - GIT development snapshot" 5pkgdesc="Enlightenment GUI toolkit - GIT development snapshot"
6arch=('i686' 'x86_64' 'arm') 6arch=('i686' 'x86_64' 'arm')
7url="http://www.enlightenment.org" 7url="http://www.enlightenment.org"
8license=('LGPL2') 8license=('LGPL2.1' 'CCPL:cc-by-sa')
9makedepends=('doxygen' 'imagemagick') 9makedepends=('doxygen' 'imagemagick')
10depends=('efl_x11' 'evas_generic_loaders')
10optdepends=('emotion_generic_players') 11optdepends=('emotion_generic_players')
11depends=('efl' 'evas_generic_loaders') 12options=('!libtool' 'debug')
12provides=("elementary=$pkgver" 'elementary-svn')
13options=('strip' 'docs' 'zipman' '!libtool' 'debug')
14buildflags="-O2 -g -fvisibility=hidden -fomit-frame-pointer"
15build() { 13build() {
16 cd "../.." 14 cd "../.."
15 export CFLAGS="$CFLAGS -fvisibility=hidden -fomit-frame-pointer"
17 make clean distclean 16 make clean distclean
18 ./configure --prefix=/usr \ 17 ./configure --prefix=/usr \
19 --disable-static 18 --disable-static
20 make 19 make
20 make doc
21} 21}
22 22
23#check() { 23#check() {
@@ -27,56 +27,43 @@ build() {
27 27
28package_elementary() { 28package_elementary() {
29 cd "../.." 29 cd "../.."
30 rm -rf $pkgdir/usr
31 make -j1 DESTDIR="$pkgdir/" install 30 make -j1 DESTDIR="$pkgdir/" install
32 install -Dm644 README $pkgdir/usr/share/$pkgname/README 31 install -Dm644 README "$pkgdir/usr/share/$pkgname/README"
33 install -Dm644 NEWS $pkgdir/usr/share/$pkgname/NEWS 32 install -Dm644 NEWS "$pkgdir/usr/share/$pkgname/NEWS"
34 install -Dm644 ChangeLog $pkgdir/usr/share/$pkgname/ChangeLog 33 install -Dm644 ChangeLog "$pkgdir/usr/share/$pkgname/ChangeLog"
35 install -Dm644 AUTHORS $pkgdir/usr/share/$pkgname/AUTHORS 34 install -Dm644 AUTHORS "$pkgdir/usr/share/$pkgname/AUTHORS"
36 install -Dm644 COMPLIANCE $pkgdir/usr/share/$pkgname/COMPLIANCE 35 install -Dm644 COMPLIANCE "$pkgdir/usr/share/$pkgname/COMPLIANCE"
37 install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING 36 install -Dm644 COPYING.images "$pkgdir/usr/share/licenses/$pkgname/COPYING.images"
38 install -Dm644 COPYING.images $pkgdir/usr/share/licenses/$pkgname/COPYING.images 37 sed -n '1,/details./p' COPYING > "$pkgdir/usr/share/licenses/$pkgname/COPYING"
39 ln -s ../licenses/$pkgname/COPYING $pkgdir/usr/share/$pkgname/COPYING 38 ln -s "../licenses/$pkgname/COPYING" "$pkgdir/usr/share/$pkgname/COPYING"
40 ln -s ../licenses/$pkgname/COPYING.images $pkgdir/usr/share/$pkgname/COPYING.images 39 ln -s "../licenses/$pkgname/COPYING.images" "$pkgdir/usr/share/$pkgname/COPYING.images"
41 rm -rf $pkgdir/usr/bin/elementary_test* 40 rm -rf "$pkgdir/usr/bin/"elementary_test*
42 rm -rf $pkgdir/usr/lib/elementary/modules/test_entry 41 rm -rf "$pkgdir/usr/lib/elementary/modules/"{test_entry,test_map}
43 rm -rf $pkgdir/usr/lib/elementary/modules/test_map 42 rm -rf "$pkgdir/usr/lib/elementary_testql.so"
44 rm -rf $pkgdir/usr/lib/elementary_testql.so 43 rm -rf "$pkgdir/usr/share/applications/elementary_test.desktop"
45 rm -rf $pkgdir/usr/share/applications/elementary_test.desktop 44 rm -rf "$pkgdir/usr/share/elementary/"{examples,images,objects}
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} 45}
50 46
51package_elementary_test() { 47package_elementary_test() {
48 pkgdesc="Test application for Elementary"
49 depends=('elementary')
50
52 cd "../.." 51 cd "../.."
53 rm -rf $pkgdir/usr
54 make -j1 DESTDIR="$pkgdir/" install 52 make -j1 DESTDIR="$pkgdir/" install
55 rm -rf $pkgdir/usr/include 53 rm -rf "$pkgdir/usr/include"
56 rm -rf $pkgdir/usr/bin/elementary_codegen 54 rm -rf "$pkgdir/usr/bin/"{elementary_codegen,elementary_config,elementary_quicklaunch,elementary_run,elm_prefs_cc}
57 rm -rf $pkgdir/usr/bin/elementary_config 55 rm -rf "$pkgdir/usr/lib/"{cmake,edje,elementary,libelementary.so*,pkgconfig}
58 rm -rf $pkgdir/usr/bin/elementary_quicklaunch 56 rm -rf "$pkgdir/usr/share/applications/elementary_config.desktop"
59 rm -rf $pkgdir/usr/bin/elementary_run 57 rm -rf "$pkgdir/usr/share/elementary/"{config,examples,themes,edje_externals}
60 rm -rf $pkgdir/usr/bin/elm_prefs_cc 58 rm -rf "$pkgdir/usr/share/"{icons,locale}
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} 59}
74 60
75package_elementary_doc() { 61package_elementary_doc() {
62 pkgdesc="Documentation for Elementary"
63 depends=()
64
76 cd "../.." 65 cd "../.."
77 rm -rf $pkgdir/usr 66 mkdir -p "$pkgdir/usr/share/$pkgname"
78 make -j1 doc 67 cp -a doc/html "$pkgdir/usr/share/$pkgname/html"
79 mkdir -p $pkgdir/usr/share/$pkgname 68 cp -a doc/latex "$pkgdir/usr/share/$pkgname/latex"
80 cp -r doc/html $pkgdir/usr/share/$pkgname/html
81 cp -r doc/latex $pkgdir/usr/share/$pkgname/latex
82} 69}