[arch-commits] Commit in ibus-googlepinyin/trunk (PKGBUILD)
Felix Yan
fyan at nymeria.archlinux.org
Tue Jul 1 06:50:40 UTC 2014
Date: Tuesday, July 1, 2014 @ 08:50:40
Author: fyan
Revision: 113848
upgpkg: ibus-googlepinyin 0.1.2-4
mtree rebuild
Modified:
ibus-googlepinyin/trunk/PKGBUILD
----------+
PKGBUILD | 22 ++++++++--------------
1 file changed, 8 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-07-01 06:49:46 UTC (rev 113847)
+++ PKGBUILD 2014-07-01 06:50:40 UTC (rev 113848)
@@ -5,33 +5,27 @@
pkgname=ibus-googlepinyin
pkgver=0.1.2
-pkgrel=3
+pkgrel=4
pkgdesc="IBus Wrapper for libgooglepinyin"
arch=('any')
url="http://code.google.com/p/libgooglepinyin"
license=('APACHE')
-optdepends=(
- 'opencc: for simplified chinese translation to tranditional chinese'
-)
+optdepends=('opencc: for simplified chinese translation to tranditional chinese')
depends=('libgooglepinyin' 'ibus' 'iso-codes')
makedepends=('cmake')
source=("http://libgooglepinyin.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2")
build() {
- cd "$srcdir"
+ rm -rf build
+ mkdir -p build
+ cd build
- msg "Starting make..."
-
- rm -rf "$srcdir/build"
- cp -rf "$srcdir/$pkgname" "$srcdir/build"
- cd "$srcdir/build"
-
- find . -type f -name '*.py' | xargs sed -i 's|/usr/bin/python|/usr/bin/python2|g'
- cmake -DCMAKE_INSTALL_PREFIX=/usr .
+ find ../$pkgname -type f -name '*.py' | xargs sed -i 's|/usr/bin/python|/usr/bin/python2|g'
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ../$pkgname
}
package() {
- cd "$srcdir/build"
+ cd build
make DESTDIR="$pkgdir" install
}
More information about the arch-commits
mailing list