|
复制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 $* |
|