summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-03-31 22:22:19 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-03-31 22:22:19 +0900
commitd0bfeaf7ebe427624fa34f5e522f3feb7444b9a3 (patch)
tree4b44016575373e3321496aa9274d79207d5bf172
parent1c50ffe83f41a6859e7595fd60851cd2b9b8e39b (diff)
we have spec files... lets add arch pkgbuild stuff too :)
-rw-r--r--Makefile.am7
-rw-r--r--configure.ac1
-rw-r--r--pkgbuild/PKGBUILD.in73
3 files changed, 80 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 1ade071e3..2983d1e45 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -106,7 +106,8 @@ old/README.escape \
old/README.ethumb \
old/README.evas \
old/README.evil \
-spec/efl.spec
+spec/efl.spec \
+pkgbuild/PKGBUILD
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA =
@@ -305,6 +306,10 @@ examples:
install-examples:
@$(MAKE) $(AM_MAKEFLAGS) -C src install-examples
+pkgbuild::
+ @echo "making arch packages"
+ makepkg -f -p $(top_builddir)/pkgbuild/PKGBUILD
+
# cleaning
clean-local:
diff --git a/configure.ac b/configure.ac
index 36fe7d64b..ec34890e8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3639,6 +3639,7 @@ src/examples/ethumb_client/Makefile
src/lib/eina/eina_config.h
src/lib/ecore_x/ecore_x_version.h
spec/efl.spec
+pkgbuild/PKGBUILD
pc/evil.pc
pc/escape.pc
pc/eina.pc
diff --git a/pkgbuild/PKGBUILD.in b/pkgbuild/PKGBUILD.in
new file mode 100644
index 000000000..55b16f0f8
--- /dev/null
+++ b/pkgbuild/PKGBUILD.in
@@ -0,0 +1,73 @@
+# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org>
+pkgname=('efl' 'efl_doc' 'efl_x11')
+pkgver=@VERSION@
+pkgrel=1
+pkgdesc="Enlightenment Foundation Libraries"
+arch=('i686' 'x86_64' 'arm')
+url="http://www.enlightenment.org"
+license=('BSD' 'LGPL2' 'GPL2')
+depends=('bullet' 'libpng' 'libjpeg-turbo' 'gstreamer0.10' 'zlib' 'lua' 'libtiff' 'openssl' 'util-linux' 'curl' 'dbus-core' 'glibc' 'fontconfig' 'freetype2' 'fribidi' 'libpulse' 'libsndfile' 'systemd' 'libx11' 'libxau' 'libxcomposite' 'libxdamage' 'libxdmcp' 'libxext' 'libxfixes' 'libxinerama' 'libxi' 'libxrandr' 'libxrender' 'libxss' 'libxtst' ' libgl' 'giflib')
+provides=()
+replaces=()
+options=('strip' 'docs' 'zipman')
+buildflags="-fvisibility=hidden -fomit-frame-pointer"
+build() {
+ cd ".."
+ ./configure --prefix=/usr \
+ --disable-static --enable-fb --disable-tslib --enable-xinput22
+ make
+ make doc
+}
+
+check() {
+ cd ".."
+ make -k check
+}
+
+package_efl() {
+ cd ".."
+ rm -rf $pkgdir/usr
+ make DESTDIR="$pkgdir/" install
+ install -Dm644 README $pkgdir/usr/share/$pkgname/licenses/$pkgname/README
+ install -Dm644 NEWS $pkgdir/usr/share/$pkgname/licenses/$pkgname/NEWS
+ install -Dm644 ChangeLog $pkgdir/usr/share/$pkgname/licenses/$pkgname/ChangeLog
+ install -Dm644 COMPLIANCE $pkgdir/usr/share/$pkgname/licenses/$pkgname/COMPLIANCE
+ install -Dm644 AUTHORS $pkgdir/usr/share/$pkgname/licenses/$pkgname/AUTHORS
+ install -Dm644 licenses/COPYING.BSD $pkgdir/usr/share/$pkgname/licenses/$pkgname/licenses/COPYING.BSD
+ install -Dm644 licenses/COPYING.GPL $pkgdir/usr/share/$pkgname/licenses/$pkgname/licenses/COPYING.GPL
+ install -Dm644 licenses/COPYING.LGPL $pkgdir/usr/share/$pkgname/licenses/$pkgname/licenses/COPYING.LGPL
+ install -Dm644 licenses/COPYING.SMALL $pkgdir/usr/share/$pkgname/licenses/$pkgname/licenses/COPYING.SMALL
+ rm -rf \
+ $pkgdir/usr/include/evas-1/Evas_Engine_*_X11.h \
+ $pkgdir/usr/include/ecore-x-1 \
+ $pkgdir/usr/lib/evas/modules/engines/*_x11 \
+ $pkgdir/usr/lib/ecore_evas/engines/x \
+ $pkgdir/usr/lib/libecore_x* \
+ $pkgdir/usr/lib/pkgconfig/ecore-x.pc \
+ $pkgdir/usr/lib/pkgconfig/evas-*-x11.pc
+}
+
+package_efl_doc() {
+ cd ".."
+ rm -rf $pkgdir/usr
+ make DESTDIR="$pkgdir/" install
+ mkdir -p $pkgdir/usr/share/man/man3
+ cp -r doc/html $pkgdir/usr/share/$pkgname/
+ cp -r doc/latex $pkgdir/usr/share/$pkgname/latex
+}
+
+package_efl_x11() {
+ cd ".."
+ rm -rf $pkgdir/usr
+ make DESTDIR="$pkgdir/" install
+ tar cf xf.tar \
+ $pkgdir/usr/include/evas-1/Evas_Engine_*_X11.h \
+ $pkgdir/usr/include/ecore-x-1 \
+ $pkgdir/usr/lib/evas/modules/engines/*_x11 \
+ $pkgdir/usr/lib/ecore_evas/engines/x \
+ $pkgdir/usr/lib/libecore_x* \
+ $pkgdir/usr/lib/pkgconfig/ecore-x.pc \
+ $pkgdir/usr/lib/pkgconfig/evas-*-x11.pc
+ rm -rf $pkgdir/usr
+ tar -C / -P -xf xf.tar
+}