Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to use pkgver() to check for current version
pkgname=chromium-pepper-flash
pkgdesc="Google Chrome's Pepper Flash plugin for Chromium (stable version)"
pkgver=16.0.0.305
pkgrel=1
epoch=1
arch=('i686' 'x86_64')
url="http://www.google.com/chrome"
license=('custom:chrome')
conflicts=('chromium-pepper-flash-dev')
install=chromium-pepper-flash.install
# temporary to enforce upgrade to pacman 4.2
makedepends=('pacman>=4.2')
source=(license.html::https://www.google.com/chrome/intl/en/eula_text.html)
source_i686+=("https://dl.google.com/linux/direct/google-chrome-stable_current_i386.rpm")
source_x86_64+=("https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm")
sha256sums=('c714679be9b1de35475bfcd58b4d2fa5baf87c00eb049185ec062de276203d13')
sha256sums_i686=('SKIP')
sha256sums_x86_64=('SKIP')
pkgver() {
echo "$(awk -F'"' '{if(match($0,"version") != 0)print $4}' ${srcdir}/opt/google/chrome/PepperFlash/manifest.json)"
}
package() {
# create required directories
install -d "${pkgdir}"/usr/lib/PepperFlash
# copy required files
install -m644 "${srcdir}"/opt/google/chrome/PepperFlash/* "${pkgdir}"/usr/lib/PepperFlash
# copy license
install -Dm644 "${srcdir}"/license.html "${pkgdir}"/usr/share/licenses/${pkgname}/license.html
}
@AndyCrowd

This comment has been minimized.

Copy link

@AndyCrowd AndyCrowd commented Mar 14, 2015

I think that "install=chromium-pepper-flash.install" is useless and can be removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment