summaryrefslogtreecommitdiff
path: root/pkgbuild/PKGBUILD.in
diff options
context:
space:
mode:
authorDoug Newgard <scimmia22@outlook.com>2013-11-07 20:05:01 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-11-07 20:05:02 +0900
commitbc2ce50c063630b6a710ccdd27b8bc628940036b (patch)
treedfa77522203096fddc6f4583f286f459ae380eab /pkgbuild/PKGBUILD.in
parentba1f7e2d94ed9b93d627d121638ed0efcf530a6d (diff)
Minor PKGBUILD cleanup
Summary: Add PKGBUILD to make dist so it will be in the snapshots Change dep to current efl package since efl_x11 isn't there anymore Check for Makefile before running make clean distclean otherwise build fails Set correct arch on elementary_doc Install docs to /usr/share/doc Reviewers: raster Differential Revision: https://phab.enlightenment.org/D282
Diffstat (limited to '')
-rw-r--r--pkgbuild/PKGBUILD.in19
1 files changed, 10 insertions, 9 deletions
diff --git a/pkgbuild/PKGBUILD.in b/pkgbuild/PKGBUILD.in
index 761823106..6f1927cf5 100644
--- a/pkgbuild/PKGBUILD.in
+++ b/pkgbuild/PKGBUILD.in
@@ -7,13 +7,13 @@ arch=('i686' 'x86_64' 'arm')
7url="http://www.enlightenment.org" 7url="http://www.enlightenment.org"
8license=('LGPL2.1' 'CCPL:cc-by-sa') 8license=('LGPL2.1' 'CCPL:cc-by-sa')
9makedepends=('doxygen' 'imagemagick') 9makedepends=('doxygen' 'imagemagick')
10depends=('efl_x11' 'evas_generic_loaders') 10depends=('efl' 'evas_generic_loaders')
11optdepends=('emotion_generic_players') 11optdepends=('emotion_generic_players')
12options=('!libtool' 'debug') 12options=('!libtool' 'debug')
13build() { 13build() {
14 cd "../.." 14 cd "../.."
15 export CFLAGS="$CFLAGS -fvisibility=hidden -fomit-frame-pointer" 15 export CFLAGS="$CFLAGS -fvisibility=hidden -fomit-frame-pointer"
16 make clean distclean 16 [[ -e Makefile ]] && make clean distclean
17 ./configure --prefix=/usr \ 17 ./configure --prefix=/usr \
18 --disable-static 18 --disable-static
19 make 19 make
@@ -37,9 +37,8 @@ package_elementary() {
37 sed -n '1,/details./p' COPYING > "$pkgdir/usr/share/licenses/$pkgname/COPYING" 37 sed -n '1,/details./p' COPYING > "$pkgdir/usr/share/licenses/$pkgname/COPYING"
38 ln -s "../licenses/$pkgname/COPYING" "$pkgdir/usr/share/$pkgname/COPYING" 38 ln -s "../licenses/$pkgname/COPYING" "$pkgdir/usr/share/$pkgname/COPYING"
39 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"
40 rm -rf "$pkgdir/usr/bin/"elementary_test* 40 rm -rf "$pkgdir/usr/bin/"elementary_test
41 rm -rf "$pkgdir/usr/lib/elementary/modules/"{test_entry,test_map} 41 rm -rf "$pkgdir/usr/lib/elementary/modules/"{test_entry,test_map}
42 rm -rf "$pkgdir/usr/lib/elementary_testql.so"
43 rm -rf "$pkgdir/usr/share/applications/elementary_test.desktop" 42 rm -rf "$pkgdir/usr/share/applications/elementary_test.desktop"
44 rm -rf "$pkgdir/usr/share/elementary/"{examples,images,objects} 43 rm -rf "$pkgdir/usr/share/elementary/"{examples,images,objects}
45} 44}
@@ -52,7 +51,8 @@ package_elementary_test() {
52 make -j1 DESTDIR="$pkgdir/" install 51 make -j1 DESTDIR="$pkgdir/" install
53 rm -rf "$pkgdir/usr/include" 52 rm -rf "$pkgdir/usr/include"
54 rm -rf "$pkgdir/usr/bin/"{elementary_codegen,elementary_config,elementary_quicklaunch,elementary_run,elm_prefs_cc} 53 rm -rf "$pkgdir/usr/bin/"{elementary_codegen,elementary_config,elementary_quicklaunch,elementary_run,elm_prefs_cc}
55 rm -rf "$pkgdir/usr/lib/"{cmake,edje,elementary,libelementary.so*,pkgconfig} 54 rm -rf "$pkgdir/usr/lib/"{cmake,edje,libelementary.so*,pkgconfig}
55 rm -rf "$pkgdir/usr/lib/elementary/modules/"{access_output,datetime_input_ctxpopup,prefs}
56 rm -rf "$pkgdir/usr/share/applications/elementary_config.desktop" 56 rm -rf "$pkgdir/usr/share/applications/elementary_config.desktop"
57 rm -rf "$pkgdir/usr/share/elementary/"{config,examples,themes,edje_externals} 57 rm -rf "$pkgdir/usr/share/elementary/"{config,examples,themes,edje_externals}
58 rm -rf "$pkgdir/usr/share/"{icons,locale} 58 rm -rf "$pkgdir/usr/share/"{icons,locale}
@@ -60,10 +60,11 @@ package_elementary_test() {
60 60
61package_elementary_doc() { 61package_elementary_doc() {
62 pkgdesc="Documentation for Elementary" 62 pkgdesc="Documentation for Elementary"
63 depends=() 63 arch=('any')
64 unset depends optdepends
64 65
65 cd "../.." 66 cd "../.."
66 mkdir -p "$pkgdir/usr/share/$pkgname" 67 mkdir -p "$pkgdir/usr/share/doc/$pkgname"
67 cp -a doc/html "$pkgdir/usr/share/$pkgname/html" 68 cp -a doc/html "$pkgdir/usr/share/doc/$pkgname/html"
68 cp -a doc/latex "$pkgdir/usr/share/$pkgname/latex" 69 cp -a doc/latex "$pkgdir/usr/share/doc/$pkgname/latex"
69} 70}