|
刚下了个pps的安装pkgbuild:
- # Contributor: lerosua <lerosua@gmail.com>
- # Contributor: vehiclee <imxifs@gmail.com>
- pkgname='ppstream'
- pkgver='1.0.0'
- pkgrel='3'
- arch=('i686' 'x86_64')
- url='http://www.ppstream.com'
- license=('unknown')
- pkgdesc='PPStream for GNU/Linux'
- #replace='ppstream64'
- optdepends=('gksu')
- if [ "$CARCH" = "i686" ]; then
- depends=('fuse' 'mplayer' 'qt')
- source=('http://download.ppstream.com/ppstream_1.0.0-1_i386.deb')
- md5sums=('0bda66a07463396093aa38e34c11b9ec')
- elif [ "$CARCH" = "x86_64" ]; then
- depends=('mplayer' 'lib32-qt')
- source=('http://download.ppstream.com/ppstream_1.0.0-1_i386.deb'
- 'http://geekr.googlecode.com/files/libfuse.so.2.8.5')
- md5sums=('0bda66a07463396093aa38e34c11b9ec'
- '2f9b3b6e8a8a0dc922151acc4d2c8f5c')
- fi
- install=$pkgname.install
- build(){
- ar x ppstream_1.0.0-1_i386.deb
- tar xf data.tar.gz -C ${pkgdir}
- mkdir -p ${pkgdir}/etc/ld.so.conf.d
- echo '/opt/pps/lib' > ${pkgdir}/etc/ld.so.conf.d/pps.conf
- if [ "$CARCH" = "x86_64" ]; then
- mkdir -p ${pkgdir}/usr/lib32
- install -D -m644 libfuse.so.2.8.5 ${pkgdir}/usr/lib32/
- ln -s ${pkgdir}/usr/lib32/libfuse.so.2.8.5 ${pkgdir}/usr/lib32/libfuse.so.2
- fi
- }
- package(){
- mkdir -p ${pkgdir}/usr/bin
- ln -s /opt/pps/bin/PPStream ${pkgdir}/usr/bin/ppstream
- }
复制代码
我看不懂build函数里面的这句命令,他在干什么?
- install -D -m644 libfuse.so.2.8.5 ${pkgdir}/usr/lib32/
复制代码
他install这个变量也没有预先设置,难道有默认?默认是什么? |
|