Date: Saturday, June 8, 2013 @ 02:38:33 Author: heftig Revision: 92543
2.1.0 Modified: cdemu-client/trunk/PKGBUILD ----------+ PKGBUILD | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2013-06-08 00:27:41 UTC (rev 92542) +++ PKGBUILD 2013-06-08 00:38:33 UTC (rev 92543) @@ -4,7 +4,7 @@ # Contributor: Charles Lindsay <char...@chaoslizard.org> pkgname=cdemu-client -pkgver=2.0.0 +pkgver=2.1.0 pkgrel=1 pkgdesc="Simple command-line client for controlling cdemu-daemon" arch=(any) @@ -15,28 +15,33 @@ conflicts=('cdemu') install=cdemu-client.install source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2") -md5sums=('ceeec43270c28ea02c7e8a5a7009f3e0') +sha256sums=('9bd0448368b5e51eb2acfe420f612f67e3b3d4aae4aa80fa36ce130fa0a10c9f') -build() { +prepare() { + mkdir build cd $pkgname-$pkgver # python2 fix sed -i '1s|^#!.*python$|&2|' src/cdemu # fix text domain + sed -i '/^project /s/cdemu/&-client/' CMakeLists.txt + # bash completion dir change - sed -i CMakeLists.txt -e "/^project /s/cdemu/&-client/" -e "s|\ + sed -i CMakeLists.txt -e "s|\ DESTINATION \${CMAKE_INSTALL_SYSCONFDIR}/bash_completion.d|\ DESTINATION \${CMAKE_INSTALL_DATADIR}/bash-completion/completions|" +} - mkdir build; cd build - cmake .. \ +build() { + cd build + cmake ../$pkgname-$pkgver \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr make } package() { - cd $pkgname-$pkgver/build + cd build make DESTDIR="$pkgdir" install }