LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2034|回复: 0

[Arch] scim

[复制链接]
发表于 2004-11-5 22:44:07 | 显示全部楼层 |阅读模式
复制PKGBUILD和scim.install到同一目录,然后运行makepkg,一切就OK。享受ABS的力量和乐趣吧!!!
# Contributer: Rhythm Gan <rhythm_gan@yahoo.com.cn>
pkgname=scim
pkgver=1.0.1
pkgrel=1
pkgdesc="A Input Method development platform"
makedepends=('intltool')
depends=('xorg' 'gtk2' 'gconf')
install=scim.install
url="http://scim.freedesktop.org"
license=GPL
source=(http://freedesktop.org/~suzhe/sources/$pkgname-$pkgver.tar.gz scim.install)
md5sums=('f30d235cd5942014a9f12a05118705a1' '3c58b3d1258d1bec593c5312aeb81311')

build() {
        cd $startdir/src/$pkgname-$pkgver
        ./configure --prefix=/usr --sysconfdir=/etc
        make || return 1
        make DESTDIR=$startdir/pkg install
}

      

# arg 1:  the new package version
post_install() {
  echo -n "updating gtk.immodules... "
  /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
  echo "done."
}

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
  /bin/true
}

# arg 1:  the old package version
pre_remove() {
  /bin/true
}

# arg 1:  the old package version
post_remove() {
  echo -n "updating gtk.immodules... "
  /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
  echo "done."
}

op=$1
shift
$op $*
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表