summaryrefslogtreecommitdiff
path: root/pkgbuild
diff options
context:
space:
mode:
authorDoug Newgard <scimmia22@outlook.com>2013-11-07 20:03:40 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-11-07 20:03:40 +0900
commita84841a0786d19f8889108ab2f068b2e6926d99d (patch)
treef70d5d700c9df74441f29c24c4f573aa72f62fb6 /pkgbuild
parent109e1b124d62934ed390226cce091fc6371a0894 (diff)
PKGBUILD Cleanup
Summary: Change pkgname to variable instead of array Remove optdepend, no more efl_x11 package Remove strip and zipman options, they are default and we shouldn't override them if we don't need to Set CFLAGS correctly and remove -02 and -g, again defaults we shouldn't override unless necessary Only run make clean distclean when there is a Makefile to prevent build failure Quote all paths with $pkgdir Add PKGBUILD to EXTRA_DIST so it gets included in make dist Reviewers: raster Reviewed By: raster Differential Revision: https://phab.enlightenment.org/D284
Diffstat (limited to 'pkgbuild')
-rw-r--r--pkgbuild/PKGBUILD.in22
1 files changed, 10 insertions, 12 deletions
diff --git a/pkgbuild/PKGBUILD.in b/pkgbuild/PKGBUILD.in
index 101b944..72079d0 100644
--- a/pkgbuild/PKGBUILD.in
+++ b/pkgbuild/PKGBUILD.in
@@ -1,5 +1,5 @@
1# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org> 1# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org>
2pkgname=('terminology') 2pkgname=terminology
3pkgver=@VERSION@ 3pkgver=@VERSION@
4pkgrel=1 4pkgrel=1
5pkgdesc="Terminal emulator for Enlightenment - GIT development snapshot" 5pkgdesc="Terminal emulator for Enlightenment - GIT development snapshot"
@@ -7,12 +7,11 @@ arch=('i686' 'x86_64' 'arm')
7url="http://www.enlightenment.org" 7url="http://www.enlightenment.org"
8license=('BSD') 8license=('BSD')
9depends=('elementary' 'efl') 9depends=('elementary' 'efl')
10optdepends=('efl_x11') 10options=('!libtool' 'debug')
11options=('strip' 'zipman' '!libtool' 'debug')
12buildflags="-O2 -g -fvisibility=hidden -fomit-frame-pointer"
13build() { 11build() {
14 cd "../.." 12 cd "../.."
15 make clean distclean 13 export CFLAGS="$CFLAGS -fvisibility=hidden -fomit-frame-pointer"
14 [[ -e Makefile ]] && make clean distclean
16 ./configure --prefix=/usr 15 ./configure --prefix=/usr
17 make 16 make
18} 17}
@@ -24,12 +23,11 @@ build() {
24 23
25package() { 24package() {
26 cd "../.." 25 cd "../.."
27 rm -rf $pkgdir/usr
28 make -j1 DESTDIR="$pkgdir/" install 26 make -j1 DESTDIR="$pkgdir/" install
29 install -Dm644 README $pkgdir/usr/share/$pkgname/README 27 install -Dm644 README "$pkgdir/usr/share/$pkgname/README"
30 install -Dm644 NEWS $pkgdir/usr/share/$pkgname/NEWS 28 install -Dm644 NEWS "$pkgdir/usr/share/$pkgname/NEWS"
31 install -Dm644 ChangeLog $pkgdir/usr/share/$pkgname/ChangeLog 29 install -Dm644 ChangeLog "$pkgdir/usr/share/$pkgname/ChangeLog"
32 install -Dm644 AUTHORS $pkgdir/usr/share/$pkgname/AUTHORS 30 install -Dm644 AUTHORS "$pkgdir/usr/share/$pkgname/AUTHORS"
33 install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING 31 install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
34 ln -s ../licenses/$pkgname/COPYING $pkgdir/usr/share/$pkgname/COPYING 32 ln -s ../licenses/$pkgname/COPYING "$pkgdir/usr/share/$pkgname/COPYING"
35} 33}