summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDet2016-01-20 23:27:54 +0000
committerDet2016-01-20 23:27:54 +0000
commit070b2a53eed1df3895c2fbb4af20ca7ddcb2c331 (patch)
treed2f848d5640f2c1942c5267ddd78bfdcad24c3b7 /PKGBUILD
parentd2c0e735030296fd59b27f6b7bf2442bc6e07189 (diff)
downloadaur-070b2a53eed1df3895c2fbb4af20ca7ddcb2c331.tar.gz
Bundle icons of all sizes + use "StartupWMClass" in .desktop
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 25 insertions, 14 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 52075017d8e..7deafee2fd1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=chromium-snapshot-bin
pkgver=48.0.2535.0.r353757
-pkgrel=1
+pkgrel=2
pkgdesc="The open-source project behind Google Chrome (Snapshot builds)"
arch=('i686' 'x86_64')
url="https://build.chromium.org"
@@ -20,12 +20,21 @@ optdepends=('kdebase-kdialog: needed for file dialogs in KDE'
'google-chrome-dev: for Pepper Flash plugin [AUR]')
provides=('chromium')
install=$pkgname.install
-source=('chromium-snapshot-bin'
- 'chromium-snapshot-bin.desktop'
+source=("$pkgname"
+ "$pkgname.desktop"
+ "$pkgname"_{16,22,24,32,48,64,128,256}.png
'LICENSE')
md5sums=('d0d1e6e0a3c3251a46af0d767880d3e5'
- '793b3dca6ae19d15a830e7de7e1f6fd3'
- '537e0b52077bf0a616d0a0c8a79bc9d5')
+ 'dc99327fe09ed3d7c651a613a9119fe6'
+ '6cd41f6e08eee03c6553603fb0b6ecd7'
+ '227eac16d1e737bed42742840b950d41'
+ '308eb2e0c509e12ecf33165ced9eef0d'
+ 'e9944fe09afc8495a2fbf70db810a219'
+ '17856a060d1fc003447cb7a3f414be7d'
+ 'f2325d8de3d217471f029e8b59a712e3'
+ '811f5de21b882cdb49618de549e017ca'
+ 'c6cf982d5ebece0b9cd64f065acd384a'
+ 'db90dcb101891a7285d25f2fbceca752')
[[ $CARCH = x86_64 ]] && _64="_x64"
_build=$(curl -s "http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux$_64/LAST_CHANGE")
@@ -43,9 +52,8 @@ package() {
install -d "$pkgdir"/opt/
install -d "$pkgdir"/usr/bin/
install -d "$pkgdir"/usr/share/applications/
- install -d "$pkgdir"/usr/share/licenses/chromium-snapshot/
+ install -d "$pkgdir"/usr/share/licenses/${pkgname/-bin}/
install -d "$pkgdir"/usr/share/man/man1/
- install -d "$pkgdir"/usr/share/pixmaps/
msg2 "Making it nice..."
# Permissions
@@ -58,24 +66,27 @@ package() {
msg2 "Moving contents..."
# Main script
- install -m755 chromium-snapshot-bin "$pkgdir"/usr/bin/
+ install -m755 $pkgname "$pkgdir"/usr/bin/
# Rename chrome-sandbox
mv chrome-linux/chrome{_,-}sandbox
# Desktop
- install -m644 chromium-snapshot-bin.desktop "$pkgdir"/usr/share/applications/
+ install -m644 $pkgname.desktop "$pkgdir"/usr/share/applications/
- # Icon
- mv chrome-linux/product_logo_48.png "$pkgdir"/usr/share/pixmaps/chromium-snapshot-bin.png
+ # Icons
+ rm chrome-linux/product_logo_48.png
+ for i in 16 22 24 32 36 48 64 128 256; do
+ install -Dm644 ${pkgname}_${i}.png "$pkgdir"/usr/share/icons/hicolor/${i}x${i}/apps/${pkgname}.png
+ done
# Man page
gzip -9 chrome-linux/chrome.1
- mv chrome-linux/chrome.1.gz "$pkgdir"/usr/share/man/man1/chromium-snapshot-bin.1.gz
+ mv chrome-linux/chrome.1.gz "$pkgdir"/usr/share/man/man1/$pkgname.1.gz
# License
- install -m644 LICENSE "$pkgdir"/usr/share/licenses/chromium-snapshot/
+ install -m644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname/-bin}/
msg2 "Installing main directory..."
- mv chrome-linux/ "$pkgdir"/opt/chromium-snapshot
+ mv chrome-linux/ "$pkgdir"/opt/${pkgname/-bin}
}