此方法,严重抄袭。
manjaro Linux上安装360浏览器的方法
PKGBUILD
# Maintainer: Kurobac <kurobac at foxmail dot com>
pkgname=browser360-beta
pkgver=10.0.1007.0
pkgrel=1
pkgdesc="A chromium based web browser from Qihoo 360"
arch=('x86_64')
url="https://packages.deepin.com/deepin/"
license=('custom')
depends=('ca-certificates' 'ttf-liberation' 'gconf' 'libappindicator-gtk3' 'gconf' 'gtk2' 'nss' 'libxss' 'lsb-release' 'wget' 'xdg-utils')
source=('http://packages.deepin.com/deepin/pool/non-free/b/browser360-beta/browser360-beta_10.0.1007.0-1_amd64.deb')
sha1sums=('75e5d759821cba54af2e42dea5ea48496a73c4af')
package() {
cd "${srcdir}"
tar xf data.tar.xz -C "${pkgdir}"
# remove crontib
rm -rf "${pkgdir}"/etc
rm -rf "${pkgdir}"/opt/360/browser360-beta/cron
# icons
for i in 16x16 22x22 24x24 32x32 48x48 64x64 128x128 256x256; do
install -Dm644 "${pkgdir}"/opt/360/browser360-beta/product_logo_${i/x*}.png \
"${pkgdir}"/usr/share/icons/hicolor/$i/apps/${pkgname}.png
done
# remove icons
rm "${pkgdir}"/opt/360/browser360-beta/product_logo_*
}
网友评论