Advertisement
Guest User

PKGBUILD - pipelight, x86_64, Arch Linux

a guest
May 6th, 2017
533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. # Maintainer: Anish Bhatt anish [at] gatech [dot] edu
  2.  
  3. pkgname='pipelight'
  4. pkgver=0.2.8.2
  5. pkgrel=2
  6. epoch=1
  7. pkgdesc="A browser plugin which allows one to use windows only plugins inside Linux browser"
  8. url="https://launchpad.net/pipelight"
  9. arch=('i686' 'x86_64')
  10. license=('GPL2' 'LGPL2.1' 'MPL')
  11.  
  12. depends=('wine-staging>=1.9.2' 'ttf-ms-fonts' 'wget' 'cabextract' 'unzip' 'gnupg')
  13. if [[ "$CARCH" == "x86_64" ]]; then
  14. depends+=('lib32-libsm' 'lib32-libgl')
  15. else
  16. depends+=('libsm' 'libgl')
  17. fi
  18.  
  19. optdepends=('zenity: needed for file dialogs',
  20. 'kdebase-kdialog: needed for file dialogs in KDE')
  21.  
  22. # Set value to 1 if you want to compile pluginloader yourself
  23. _compilepluginloader=1
  24.  
  25. if [[ $_compilepluginloader != 0 ]]; then
  26. if [[ "$CARCH" == "x86_64" ]]; then
  27. makedepends=('mingw-w64-gcc')
  28. else
  29. makedepends=('mingw32-gcc')
  30. fi
  31. fi
  32.  
  33. makedepends+=('cabextract' 'xz')
  34.  
  35. #source=("https://bitbucket.org/mmueller2012/pipelight/get/v${pkgver%.*}-${pkgver##*.}.tar.bz2"
  36. # "https://launchpad.net/pipelight/trunk/0.1/+download/pluginloader-prebuilt-v${pkgver%.*}-${pkgver##*.}.tar.gz")
  37. source=("https://bitbucket.org/mmueller2012/pipelight/get/v${pkgver}.tar.bz2"
  38. "pluginloader-v${pkgver}.tar.gz::http://www.slackware.com/~alien/slackbuilds/pipelight/build/pluginloader-v0.2.8.2.tar.gz")
  39. # "pluginloader-v${pkgver}.tar.gz.sig::http://www.slackware.com/~alien/slackbuilds/pipelight/build/pluginloader-v0.2.8.2.tar.gz.sig"
  40. noextract=("pluginloader-v${pkgver}.tar.gz")
  41.  
  42. md5sums=('6cd830fd80e46501b85fdccd059c240d'
  43. '8c09e0efd38cb146947084fa16a0c7a3')
  44.  
  45. #validpgpkeys=(428B5197DE952586DA520298E49CC0415DC2D5CA) # Sebastian Lackner & Michael Mueller
  46.  
  47. install=pipelight.install
  48.  
  49. _srcdir=mmueller2012-pipelight-792e7a4885a6/
  50.  
  51. #this changes the install location for the pipelight executables
  52. _prefix=/usr
  53.  
  54. #change this if your wine-silverlight is installed elsewhere, or if you prefer a different wine directory
  55. _wine=/usr
  56.  
  57. prepare() {
  58. pushd $_srcdir
  59.  
  60. if [[ $_compilepluginloader == 0 ]]; then
  61. ln -sf ../pluginloader-v${pkgver}.tar.gz .
  62. ln -sf ../pluginloader-v${pkgver}.tar.gz.sig .
  63. fi
  64.  
  65. #patch -p1 < ../gnupg_fix.patch
  66. pushd share/
  67.  
  68. #in case you want to use 64bit wine, you would need this
  69. if [[ "$CARCH" == "x86_64" ]]; then
  70. sed -i 's|Files|Files (x86)|g' configs/pipelight*
  71. sed -i 's|Files|Files (x86)|g' install-dependency
  72. fi
  73.  
  74. popd
  75. popd
  76. }
  77.  
  78. build() {
  79. pushd $_srcdir
  80. if [[ $_compilepluginloader == 0 ]]; then
  81. ./configure --prefix=$_prefix --wine-path=$_wine/bin/wine --gcc-runtime-dlls="" --win32-prebuilt --with-win64 --win64-prebuilt --wine64-path=$_wine/bin/wine64
  82. else
  83. ./configure --prefix=$_prefix --wine-path=$_wine/bin/wine --gcc-runtime-dlls="" --win32-static --with-win64 --win64-static --wine64-path=$_wine/bin/wine64
  84. fi
  85. make
  86. popd
  87. }
  88.  
  89. package() {
  90. make -C $_srcdir PREFIX=$_prefix DESTDIR=$pkgdir install
  91.  
  92. #if [[ $_compilepluginloader == 0 ]]; then
  93. # install -Dm644 src/windows/pluginloader.exe ${pkgdir}/$_prefix/share/pipelight/.
  94. #fi
  95. # All plugin creation has now been moved to pipelight.install
  96.  
  97. # fix man page flags
  98. chmod 0644 ${pkgdir}/usr/share/man/man1/pipelight-plugin.1
  99. }
  100.  
  101. # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement