summaryrefslogtreecommitdiff
path: root/pkgbuild/PKGBUILD.in
blob: 27e19ea5266f326912e3fa145b3c56a547944068 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org>
pkgname=('elementary' 'elementary_test' 'elementary_doc')
pkgver=@VERSION@
pkgrel=1
pkgdesc="Eklementary GUI toolkit - GIT development snapshot (Ecore, Eldbus, Edje, Eet, Eeze, Efreet, Eina, Eio, Embryo, Emotion, Eo, Ephysics, Ethumb, & Evas)"
arch=('i686' 'x86_64' 'arm')
url="http://www.enlightenment.org"
license=('LGPL2')
makedepends=('doxygen' 'imagemagick')
optdepends=('emotion_generic_players')
depends=('efl' 'evas_generic_loaders')
provides=("elementary=$pkgver" 'elementary-svn')
options=('strip' 'docs' 'zipman' '!libtool' 'debug')
buildflags="-O2 -g -fvisibility=hidden -fomit-frame-pointer"
build() {
  cd "../.."
  make clean distclean
  ./configure --prefix=/usr \
  --disable-static
  make
}

#check() {
#  cd "../.."
#  make -k check
#}

package_elementary() {
  cd "../.."
  rm -rf $pkgdir/usr
  make -j1 DESTDIR="$pkgdir/" install
  install -Dm644 README $pkgdir/usr/share/$pkgname/README
  install -Dm644 NEWS $pkgdir/usr/share/$pkgname/NEWS
  install -Dm644 ChangeLog $pkgdir/usr/share/$pkgname/ChangeLog
  install -Dm644 AUTHORS $pkgdir/usr/share/$pkgname/AUTHORS
  install -Dm644 COMPLIANCE $pkgdir/usr/share/$pkgname/COMPLIANCE
  install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
  install -Dm644 COPYING.images $pkgdir/usr/share/licenses/$pkgname/COPYING.images
  ln -s ../licenses/$pkgname/COPYING $pkgdir/usr/share/$pkgname/COPYING
  ln -s ../licenses/$pkgname/COPYING.images $pkgdir/usr/share/$pkgname/COPYING.images
  rm -rf $pkgdir/usr/bin/elementary_test*
  rm -rf $pkgdir/usr/lib/elementary/modules/test_entry
  rm -rf $pkgdir/usr/lib/elementary/modules/test_map
  rm -rf $pkgdir/usr/lib/elementary_testql.so
  rm -rf $pkgdir/usr/share/applications/elementary_test.desktop
  rm -rf $pkgdir/usr/share/elementary/examples
  rm -rf $pkgdir/usr/share/elementary/images
  rm -rf $pkgdir/usr/share/elementary/objects
}

package_elementary_test() {
  cd "../.."
  rm -rf $pkgdir/usr
  make -j1 DESTDIR="$pkgdir/" install
  rm -rf $pkgdir/usr/include
  rm -rf $pkgdir/usr/bin/elementary_codegen
  rm -rf $pkgdir/usr/bin/elementary_config
  rm -rf $pkgdir/usr/bin/elementary_quicklaunch
  rm -rf $pkgdir/usr/bin/elementary_run
  rm -rf $pkgdir/usr/bin/elm_prefs_cc
  rm -rf $pkgdir/usr/lib/cmake
  rm -rf $pkgdir/usr/lib/edje
  rm -rf $pkgdir/usr/lib/elementary
  rm -rf $pkgdir/usr/lib/libelementary.so*
  rm -rf $pkgdir/usr/lib/pkgconfig
  rm -rf $pkgdir/usr/share/applications/elementary_config.desktop
  rm -rf $pkgdir/usr/share/elementary/config
  rm -rf $pkgdir/usr/share/elementary/edje_externals/icons.edj
  rm -rf $pkgdir/usr/share/elementary/examples
  rm -rf $pkgdir/usr/share/elementary/themes
  rm -rf $pkgdir/usr/share/icons/elementary.png
  rm -rf $pkgdir/usr/share/locale/
}

package_elementary_doc() {
  cd "../.."
  rm -rf $pkgdir/usr
  make -j1 doc
  mkdir -p $pkgdir/usr/share/$pkgname
  cp -r doc/html $pkgdir/usr/share/$pkgname/html
  cp -r doc/latex $pkgdir/usr/share/$pkgname/latex
}