summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Newgard <scimmia22@outlook.com>2013-11-07 19:59:03 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-11-07 19:59:04 +0900
commitd208517a079b157d00c8e2315015a8a6e29f4f56 (patch)
treed3fa433c11cc14db026b2673b24f581930ef90ea
parent142292560f168fdf6928806e843669a008703f11 (diff)
Add PKGBUILD
Summary: The other core programs/libs all have a PKGBUILD, so add it here, too. Reviewers: raster, zmike CC: cedric Differential Revision: https://phab.enlightenment.org/D285
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac1
-rw-r--r--pkgbuild/PKGBUILD.in37
-rw-r--r--pkgbuild/enlightenment.install12
4 files changed, 52 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 0408b9b..ba31f42 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -69,7 +69,8 @@ endif
69DISTCHECK_CONFIGURE_FLAGS = --disable-systemd 69DISTCHECK_CONFIGURE_FLAGS = --disable-systemd
70 70
71EXTRA_DIST = config.rpath README AUTHORS COPYING \ 71EXTRA_DIST = config.rpath README AUTHORS COPYING \
72 enlightenment.spec.in enlightenment.spec enlightenment.pc 72 enlightenment.spec.in enlightenment.spec enlightenment.pc \
73 pkgbuild/PKGBUILD pkgbuild/enlightenment.install
73 74
74filesdir = $(datadir)/enlightenment/ 75filesdir = $(datadir)/enlightenment/
75files_DATA = AUTHORS COPYING 76files_DATA = AUTHORS COPYING
diff --git a/configure.ac b/configure.ac
index 23b267b..f7e63f5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1044,6 +1044,7 @@ config/default/Makefile
1044config/standard/Makefile 1044config/standard/Makefile
1045config/mobile/Makefile 1045config/mobile/Makefile
1046$po_makefile_in 1046$po_makefile_in
1047pkgbuild/PKGBUILD
1047]) 1048])
1048 1049
1049# report 1050# report
diff --git a/pkgbuild/PKGBUILD.in b/pkgbuild/PKGBUILD.in
new file mode 100644
index 0000000..9c32678
--- /dev/null
+++ b/pkgbuild/PKGBUILD.in
@@ -0,0 +1,37 @@
1# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org>>
2
3pkgname=enlightenment
4pkgver=@VERSION@
5pkgrel=1
6pkgdesc="Enlightenment window manager - GIT development snapshot"
7arch=('i686' 'x86_64')
8url="http://www.enlightenment.org"
9license=('BSD')
10depends=('elementary' 'xcb-util-keysyms' 'hicolor-icon-theme'
11 'desktop-file-utils' 'udisks2' 'ttf-font' 'bluez-libs')
12optdepends=('connman: network module')
13provides=("enlightenment17=$pkgver" 'notification-daemon')
14conflicts=("enlightenment17")
15backup=('etc/enlightenment/sysactions.conf'
16 'etc/xdg/menus/enlightenment.menu')
17options=('!libtool' 'debug')
18install=enlightenment.install
19
20build() {
21 cd "../.."
22 export CFLAGS="$CFLAGS -fvisibility=hidden -fomit-frame-pointer"
23 [[ -e Makefile ]] && make clean distclean
24 ./configure --prefix=/usr --sysconfdir=/etc
25 make
26}
27
28package() {
29 cd "../.."
30 make -j1 DESTDIR="$pkgdir" install
31 install -Dm644 AUTHORS "$pkgdir/usr/share/$pkgname/AUTHORS"
32 install -Dm644 ChangeLog "$pkgdir/usr/share/$pkgname/ChangeLog"
33 install -Dm644 NEWS "$pkgdir/usr/share/$pkgname/NEWS"
34 install -Dm644 README "$pkgdir/usr/share/$pkgname/README"
35 install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
36 ln -sf "../licenses/$pkgname/COPYING" "$pkgdir/usr/share/$pkgname/COPYING"
37}
diff --git a/pkgbuild/enlightenment.install b/pkgbuild/enlightenment.install
new file mode 100644
index 0000000..1182e76
--- /dev/null
+++ b/pkgbuild/enlightenment.install
@@ -0,0 +1,12 @@
1post_install() {
2 update-mime-database usr/share/mime > /dev/null
3 update-desktop-database -q
4}
5
6post_upgrade() {
7 post_install
8}
9
10post_remove() {
11 post_install
12}