|
楼主 |
发表于 2008-6-23 10:15:03
|
显示全部楼层
已经参照后改为
<quote>
#Contributor:libfetion<163.com>
# Maintainer: thethirdghost<gmail.com>
pkgname=linux_fetion
realname=linux-fetion
pkgver=0.2.1
pkgrel=3
pkgdesc="Linux Fetion a KDE IM client, Using CHINA MOBILE's Fetion Protocol "
arch=('i686' 'x86_64')
url="http://www.libfetion.cn/"
license=('GPL')
depends=("qt>4.3" "curl" "gcc-libs" "libstdc++5")
makedepends=("gcc")
source=(http://www.libfetion.cn/download/App/$realname-$pkgver.tar.gz)
md5sums=('2ab1026bf6779df728d7f42797cb073a')
build() {
cd ${startdir}/src/${realname}-${pkgver}
if [[ "${CARCH}" == "x86_64" ]]; then
./64_libfetion.sh
fi
qmake || return 1
make ||return 1
install -d ${startdir}/pkg/usr/{bin,share/{applications,libfetion,pixmaps}}
install -m755 ${startdir}/src/${realname}-${pkgver}/linux-fetion \
${startdir}/pkg/usr/bin/
install -m644 ${startdir}/src/${realname}-${pkgver}/LibFetion.desktop \
${startdir}/pkg/usr/share/applications/
cp -R ${startdir}/src/${realname}-${pkgver}/image \
${startdir}/pkg/usr/share/libfetion/
install -m644 ${startdir}/src/${realname}-${pkgver}/fetion_utf8_CN.qm \
${startdir}/pkg/usr/share/libfetion/
install -m644 ${startdir}/src/${realname}-${pkgver}/fetion.png \
${startdir}/pkg/usr/share/pixmaps/
chmod -R 755 $startdir/pkg/usr/share/libfetion/image
}
</quote>
注意到cp -R ${startdir}/src/${realname}-${pkgver}/image \
${startdir}/pkg/usr/share/libfetion/
和chmod -R 755 $startdir/pkg/usr/share/libfetion/image,有没有用install并成一句呢? |
|