summaryrefslogtreecommitdiff
path: root/extra/scim-pinyin/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/scim-pinyin/PKGBUILD')
-rw-r--r--extra/scim-pinyin/PKGBUILD44
1 files changed, 23 insertions, 21 deletions
diff --git a/extra/scim-pinyin/PKGBUILD b/extra/scim-pinyin/PKGBUILD
index 3f8e1e149..abf1fe1d8 100644
--- a/extra/scim-pinyin/PKGBUILD
+++ b/extra/scim-pinyin/PKGBUILD
@@ -1,33 +1,35 @@
-# $Id: PKGBUILD 77980 2010-04-19 08:02:17Z allan $
-# Maintainer:
+# $Id: PKGBUILD 149097 2012-02-05 17:19:20Z bisson $
+# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributer: Gan Lu <rhythm.gan@gmail.com>
pkgname=scim-pinyin
pkgver=0.5.91
-pkgrel=5
-pkgdesc="Chinese 拼音 (PinYin) input for SCIM"
+pkgrel=6
+pkgdesc='Chinese pinyin input for SCIM'
+url='http://www.scim-im.org/'
arch=('i686' 'x86_64')
-url="http://www.scim-im.org/"
-license=GPL
-depends=('scim>=1.4.7')
+license=('GPL')
+depends=('scim')
options=('!libtool')
-source=(http://downloads.sourceforge.net/sourceforge/scim/$pkgname-$pkgver.tar.gz
- scim-pinyin-0.5.91-gcc43.patch)
-md5sums=('fb96d3545090d7681ea03edaced4eccb'
- 'ef84582d9bac7ac250d2d64cf260ad39')
+source=("http://downloads.sourceforge.net/sourceforge/scim/${pkgname}-${pkgver}.tar.gz"
+ 'gcc43.patch')
+sha1sums=('58bea437a211b7af8420057541a38933a41841c7'
+ 'b78ecec237ee0e04ec43604fcc344ff43ccfb7b3')
build() {
- cd $srcdir/$pkgname-$pkgver
- patch -Np1 -i $srcdir/scim-pinyin-0.5.91-gcc43.patch
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --disable-static
- make || return 1
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ patch -p1 -i ../gcc43.patch
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --disable-static \
+
+ make
}
package() {
- cd $srcdir/$pkgname-$pkgver
- make DESTDIR=$pkgdir install
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
}
-
-