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
This commit is contained in:
Doug Newgard 2013-11-07 20:03:40 +09:00 committed by Carsten Haitzler (Rasterman)
parent 109e1b124d
commit a84841a078
2 changed files with 11 additions and 13 deletions

View File

@ -26,5 +26,5 @@ m4/ltoptions.m4 \
m4/ltsugar.m4 \ m4/ltsugar.m4 \
m4/ltversion.m4 m4/ltversion.m4
EXTRA_DIST = README AUTHORS COPYING autogen.sh terminology.spec EXTRA_DIST = README AUTHORS COPYING autogen.sh terminology.spec pkgbuild/PKGBUILD

View File

@ -1,5 +1,5 @@
# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org> # Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org>
pkgname=('terminology') pkgname=terminology
pkgver=@VERSION@ pkgver=@VERSION@
pkgrel=1 pkgrel=1
pkgdesc="Terminal emulator for Enlightenment - GIT development snapshot" pkgdesc="Terminal emulator for Enlightenment - GIT development snapshot"
@ -7,12 +7,11 @@ arch=('i686' 'x86_64' 'arm')
url="http://www.enlightenment.org" url="http://www.enlightenment.org"
license=('BSD') license=('BSD')
depends=('elementary' 'efl') depends=('elementary' 'efl')
optdepends=('efl_x11') options=('!libtool' 'debug')
options=('strip' 'zipman' '!libtool' 'debug')
buildflags="-O2 -g -fvisibility=hidden -fomit-frame-pointer"
build() { build() {
cd "../.." cd "../.."
make clean distclean export CFLAGS="$CFLAGS -fvisibility=hidden -fomit-frame-pointer"
[[ -e Makefile ]] && make clean distclean
./configure --prefix=/usr ./configure --prefix=/usr
make make
} }
@ -24,12 +23,11 @@ build() {
package() { package() {
cd "../.." cd "../.."
rm -rf $pkgdir/usr
make -j1 DESTDIR="$pkgdir/" install make -j1 DESTDIR="$pkgdir/" install
install -Dm644 README $pkgdir/usr/share/$pkgname/README install -Dm644 README "$pkgdir/usr/share/$pkgname/README"
install -Dm644 NEWS $pkgdir/usr/share/$pkgname/NEWS install -Dm644 NEWS "$pkgdir/usr/share/$pkgname/NEWS"
install -Dm644 ChangeLog $pkgdir/usr/share/$pkgname/ChangeLog install -Dm644 ChangeLog "$pkgdir/usr/share/$pkgname/ChangeLog"
install -Dm644 AUTHORS $pkgdir/usr/share/$pkgname/AUTHORS install -Dm644 AUTHORS "$pkgdir/usr/share/$pkgname/AUTHORS"
install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
ln -s ../licenses/$pkgname/COPYING $pkgdir/usr/share/$pkgname/COPYING ln -s ../licenses/$pkgname/COPYING "$pkgdir/usr/share/$pkgname/COPYING"
} }