Skip to content

Instantly share code, notes, and snippets.

@MightyPork
Created June 24, 2015 21:04
Show Gist options
  • Save MightyPork/f409a4923d5bcbff3dda to your computer and use it in GitHub Desktop.
Save MightyPork/f409a4923d5bcbff3dda to your computer and use it in GitHub Desktop.
Dartium PKGBUILD
# Contributor: T. Jameson Little <[email protected]>
pkgname=dartium-bin
pkgver=1.10.0
pkgrel=1
pkgdesc="Chromium-based browser that includes the Dart virtual machine (integration version built with dart-editor)"
arch=(i686 x86_64)
url="http://www.dartlang.org/dartium/"
license=('BSD')
depends=('libudev.so.0' 'libgcrypt15' 'gconf')
optdepends=()
makedepends=(unzip)
provides=('dartium')
conflicts=('dartium')
replaces=()
install=
changelog=dartium.changelog
noextract=()
if [[ ${CARCH} = x86_64 ]]; then
source=("http://storage.googleapis.com/dart-archive/channels/stable/release/latest/dartium/dartium-linux-x64-release.zip")
md5sums=('a1430b6e096bb1ddbb2e7cce4ab03cc8')
else
source=("http://storage.googleapis.com/dart-archive/channels/stable/release/latest/dartium/dartium-linux-ia32-release.zip")
fi
package(){
_from=dartium-lucid64-full-stable-45692.0
mkdir -p ${pkgdir}/opt ${pkgdir}/usr/bin ${pkgdir}/usr/lib
find ${srcdir}/${_from} -perm -u+x -exec chmod +x '{}' +
find ${srcdir}/${_from} -perm -u+r -exec chmod +r '{}' +
find ${srcdir}/${_from} -perm -u+w -exec chmod +w '{}' +
cp -r ${srcdir}/${_from} ${pkgdir}/opt/${pkgname}
ln -s /opt/${pkgname}/chrome ${pkgdir}/usr/bin/dartium
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment