Date: Tuesday, September 2, 2014 @ 18:11:29 Author: eric Revision: 220898
upgpkg: moc 1:2.5.0-1 Upstream update, Clean up PKGBUILD Modified: moc/trunk/PKGBUILD ----------+ PKGBUILD | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2014-09-02 15:36:37 UTC (rev 220897) +++ PKGBUILD 2014-09-02 16:11:29 UTC (rev 220898) @@ -2,7 +2,7 @@ # Maintainer: Eric Bélanger <[email protected]> pkgname=moc -pkgver=2.5.0beta2 +pkgver=2.5.0 pkgrel=1 epoch=1 pkgdesc="An ncurses console audio player designed to be powerful and easy to use" @@ -18,28 +18,12 @@ 'wavpack: for using the wavpack plugin' 'faad2: for using the aac plugin' 'libmodplug: for using the modplug plugin') -source=(http://ftp.daper.net/pub/soft/moc/unstable/moc-${pkgver%b*}-${pkgver#*.*.?}.tar.bz2{,.sig}) -sha1sums=('bf786d719c853c22dec74bc2ee565aae4596fbe7' +source=(http://ftp.daper.net/pub/soft/moc/stable/${pkgname}-${pkgver}.tar.bz2{,.sig}) +sha1sums=('a02c10075541995771dbdccb7f2d0ecd19d70b81' 'SKIP') -# source PKGBUILD && mksource -mksource() { - [[ -x /usr/bin/svn ]] || (echo "svn not found. Install subversion." && return 1) - _svnver=2454 - _svntrunk="svn://daper.net/moc/trunk" - _svnmod="${pkgname}-${pkgver}" - mkdir ${pkgname}-${pkgver} - pushd ${pkgname}-${pkgver} - svn co ${_svntrunk} --config-dir ./ -r ${_svnver} ${_svnmod} - find . -depth -type d -name .svn -exec rm -rf {} \; - tar -cJf ../${pkgname}-${pkgver}.tar.xz ${pkgname}-${pkgver}/* - popd - rm -r ${pkgname}-${pkgver} - gpg --detach-sign --use-agent -u ${GPGKEY} ${pkgname}-${pkgver}.tar.xz -} - build() { - cd ${pkgname}-${pkgver%b*}-${pkgver#*.*.?} + cd ${pkgname}-${pkgver} ./configure --prefix=/usr --without-rcc \ --with-oss --with-alsa --with-jack --with-aac --with-mp3 \ --with-musepack --with-vorbis --with-flac --with-wavpack \ @@ -49,6 +33,6 @@ } package() { - cd ${pkgname}-${pkgver%b*}-${pkgver#*.*.?} + cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install }
