whisky 專任教授

註冊時間: 2005-03-04 文章: 256 來自: 八里, France
|
發表於: 星期六 五月 27, 2006 4:42 am 文章主題: Google Picasa in AUR |
|
|
Google 推出 GNU/Linux 版的 Picasa - 雖然是大量使用了 wine 技術...
在 AUR 上已經有人貼出 PKGBUILD,如果你想試看看這套可以跟 Adobe Photoshop element 相比的軟體,可以下載這個 PKGBUILD 和 makepkg 來試看看喔。
http://aur.archlinux.org/packages.php?do_Details=1&ID=5362
不過要注意,因為目前 Google Picasa 只開放給美國的 ISP 使用者,所以要從其他地方包裝你的 picasa,你可能需要修改一下 URL 的設定,使用 proxy 或是先透過一些小技巧把 bin 檔下載回你自己的電腦。
代碼: |
# Contributor: pressh <pressh@gmail.com>
pkgname=picasa
pkgver=2.2.2820
pkgrel=5
pkgdesc="Picasa is software that helps you instantly find, edit and share all the pictures on your PC."
url="http://picasa.google.com"
license="custom: Picasa end user agreement"
source=(http://dl.google.com/linux/standalone/picasa-2.2.2820-5.i386.bin picasa.desktop LICENSE)
conflicts=()
depends=(freetype2 libgphoto2 hal)
md5sums=('4dc28b3419a16e07984f9bf28a0fcc2e' '268a81bada64f9d9b88684eeb5833db6'\
'67353beb3a9fdc3bd51f2940fb1fc9f4')
build() {
mkdir -p $startdir/pkg/usr/share/{applications,pixmaps,licenses/picasa}
chmod 755 $startdir/$pkgname-$pkgver-5.i386.bin
sh $pkgname-$pkgver-5.i386.bin --target $startdir/src/picasa --nochown --noexec
cp $startdir/src/picasa.desktop $startdir/pkg/usr/share/applications/picasa.desktop
cp $startdir/src/$pkgname/desktop/picasa.xpm $startdir/pkg/usr/share/pixmaps
cp -rf $startdir/src/$pkgname/{bin,wine} $startdir/pkg/usr
# install license
install -Dm644 $startdir/src/LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
install -Dm644 $startdir/src/$pkgname/LICENSE.FOSS $startdir/pkg/usr/share/licenses/$pkgname/LICENSE.FOSS
# libtool slay
find $startdir/pkg -name '*.la' -exec rm {} \;
}
|
可用的 proxy :
http://picasa.google.com.nyud.net:8080/linux/
剛剛測試的結果,似乎 PKGBUILD 裡面的 URL link 並沒有限制,所以可以直接使用。 |
|