Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Anish Bhatt anish [at] gatech [dot] edu
- pkgname='pipelight'
- pkgver=0.2.8.2
- pkgrel=2
- epoch=1
- pkgdesc="A browser plugin which allows one to use windows only plugins inside Linux browser"
- url="https://launchpad.net/pipelight"
- arch=('i686' 'x86_64')
- license=('GPL2' 'LGPL2.1' 'MPL')
- depends=('wine-staging>=1.9.2' 'ttf-ms-fonts' 'wget' 'cabextract' 'unzip' 'gnupg')
- if [[ "$CARCH" == "x86_64" ]]; then
- depends+=('lib32-libsm' 'lib32-libgl')
- else
- depends+=('libsm' 'libgl')
- fi
- optdepends=('zenity: needed for file dialogs',
- 'kdebase-kdialog: needed for file dialogs in KDE')
- # Set value to 1 if you want to compile pluginloader yourself
- _compilepluginloader=1
- if [[ $_compilepluginloader != 0 ]]; then
- if [[ "$CARCH" == "x86_64" ]]; then
- makedepends=('mingw-w64-gcc')
- else
- makedepends=('mingw32-gcc')
- fi
- fi
- makedepends+=('cabextract' 'xz')
- #source=("https://bitbucket.org/mmueller2012/pipelight/get/v${pkgver%.*}-${pkgver##*.}.tar.bz2"
- # "https://launchpad.net/pipelight/trunk/0.1/+download/pluginloader-prebuilt-v${pkgver%.*}-${pkgver##*.}.tar.gz")
- source=("https://bitbucket.org/mmueller2012/pipelight/get/v${pkgver}.tar.bz2"
- "pluginloader-v${pkgver}.tar.gz::http://www.slackware.com/~alien/slackbuilds/pipelight/build/pluginloader-v0.2.8.2.tar.gz")
- # "pluginloader-v${pkgver}.tar.gz.sig::http://www.slackware.com/~alien/slackbuilds/pipelight/build/pluginloader-v0.2.8.2.tar.gz.sig"
- noextract=("pluginloader-v${pkgver}.tar.gz")
- md5sums=('6cd830fd80e46501b85fdccd059c240d'
- '8c09e0efd38cb146947084fa16a0c7a3')
- #validpgpkeys=(428B5197DE952586DA520298E49CC0415DC2D5CA) # Sebastian Lackner & Michael Mueller
- install=pipelight.install
- _srcdir=mmueller2012-pipelight-792e7a4885a6/
- #this changes the install location for the pipelight executables
- _prefix=/usr
- #change this if your wine-silverlight is installed elsewhere, or if you prefer a different wine directory
- _wine=/usr
- prepare() {
- pushd $_srcdir
- if [[ $_compilepluginloader == 0 ]]; then
- ln -sf ../pluginloader-v${pkgver}.tar.gz .
- ln -sf ../pluginloader-v${pkgver}.tar.gz.sig .
- fi
- #patch -p1 < ../gnupg_fix.patch
- pushd share/
- #in case you want to use 64bit wine, you would need this
- if [[ "$CARCH" == "x86_64" ]]; then
- sed -i 's|Files|Files (x86)|g' configs/pipelight*
- sed -i 's|Files|Files (x86)|g' install-dependency
- fi
- popd
- popd
- }
- build() {
- pushd $_srcdir
- if [[ $_compilepluginloader == 0 ]]; then
- ./configure --prefix=$_prefix --wine-path=$_wine/bin/wine --gcc-runtime-dlls="" --win32-prebuilt --with-win64 --win64-prebuilt --wine64-path=$_wine/bin/wine64
- else
- ./configure --prefix=$_prefix --wine-path=$_wine/bin/wine --gcc-runtime-dlls="" --win32-static --with-win64 --win64-static --wine64-path=$_wine/bin/wine64
- fi
- make
- popd
- }
- package() {
- make -C $_srcdir PREFIX=$_prefix DESTDIR=$pkgdir install
- #if [[ $_compilepluginloader == 0 ]]; then
- # install -Dm644 src/windows/pluginloader.exe ${pkgdir}/$_prefix/share/pipelight/.
- #fi
- # All plugin creation has now been moved to pipelight.install
- # fix man page flags
- chmod 0644 ${pkgdir}/usr/share/man/man1/pipelight-plugin.1
- }
- # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement