raster pushed a commit to branch master.

commit d33880593429cf894821202698abfa4513aeecb8
Author: Doug Newgard <[email protected]>
Date:   Sat Jun 22 12:35:06 2013 +0900

    Emotion_generic_player: PKGBUILD cleanup
    
    pkgname is just a variable instead of an array when it's not a split
    package
    Don't need empty makedepends array
    Add 'efl' to depends
    Remove deps that are already supplied by other deps
    Doesn't need to provide itself or the obsolete -svn version
    Doesn't need to confict with the obsolete -svn version, if someone
    still has this, they're
    so far out of date it's not very likely they're paying any attention
    at all
    Removed 'strip' and 'zipman' options, they're already default, no need
    to override if
    Removed '!libtool' option, none are generated
    Removed -O2 and -g build flags for the same reason
    Removed buildflags and specified them in the CFLAGS and CXXFLAGS
    variables
    Removed LDFLAGS declariation, why were we clearing this?
    Removed --disable-static, no static libs are built (I checked this time)
    No need to rm -rf $pkgdir/usr
    Double quote all paths with variables
---
 pkgbuild/PKGBUILD.in | 31 +++++++++++++------------------
 1 file changed, 13 insertions(+), 18 deletions(-)

diff --git a/pkgbuild/PKGBUILD.in b/pkgbuild/PKGBUILD.in
index 6082a17..b7aa2bb 100644
--- a/pkgbuild/PKGBUILD.in
+++ b/pkgbuild/PKGBUILD.in
@@ -1,24 +1,20 @@
 # Maintainer: Enlightenment Developers <[email protected]>
-pkgname=('emotion_generic_players')
+pkgname=emotion_generic_players
 pkgver=@VERSION@
 pkgrel=1
 pkgdesc="Emotion external binary executable players - GIT development snapshot"
 arch=('i686' 'x86_64' 'arm')
 url="http://www.enlightenment.org";
 license=('BSD')
-makedepends=()
-depends=('vlc' 'libdvdcss' 'libbluray' 'flac' 'vcdimager' 'libcdio'
-         'ttf-freefont' 'ttf-dejavu' 'opus' 'libssh2')
-provides=("emotion_generic_players=$pkgver" 'emotion_generic_players-svn')
-conflicts=('emotion_generic_players-svn')
-options=('strip' 'zipman' '!libtool' 'debug')
-buildflags="-O2 -g -fvisibility=hidden -fomit-frame-pointer"
+depends=('efl' 'vlc' 'libdvdcss' 'vcdimager' 'libcdio'
+         'ttf-freefont' 'ttf-dejavu' 'libssh2')
+options=('debug')
 build() {
-  export LDFLAGS=""
   cd "../.."
+  export CFLAGS="$CFLAGS -fvisibility=hidden -fomit-frame-pointer"
+  export CXXFLAGS="$CXXFLAGS -fvisibility=hidden -fomit-frame-pointer"
   make clean distclean
-  ./configure --prefix=/usr \
-  --disable-static
+  ./configure --prefix=/usr
   make
 }
 
@@ -29,12 +25,11 @@ build() {
 
 package() {
   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 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
-  ln -s ../licenses/$pkgname/COPYING $pkgdir/usr/share/$pkgname/COPYING
+  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 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+  ln -s "../licenses/$pkgname/COPYING" "$pkgdir/usr/share/$pkgname/COPYING"
 }

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to