summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 29626868664b81afd9af9927cafa64e166cb4e02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: YeahSure <lapdogpdx@yahoo.com>

pkgname=mozplugger
_pkgname=mozplugger
pkgver=2.1.6
pkgrel=1
pkgdesc="A Mozilla & Firefox multimedia plugin."
arch=('i686' 'x86_64')
url="https://web.archive.org/web/20190413003821/http://mozplugger.mozdev.org/"
license=('GPL')
depends=('m4' 'libx11')
backup=('etc/mozpluggerrc')
install=mozplugger.install
source=($url/files/mozplugger-$pkgver.tar.gz)
sha256sums=('294cf06ad37b8d89e57ee9c4dc9e7549fd1b0dcec9769171d65dad36099e5fef')

build() {
  cd $_pkgname-$pkgver

  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
  #--enable-always-xembed
  # uncomment the preceding line to get mozplugger running in Chromium
  # this will always use Xembed which kills keyboard focus

  make
}

package() {
  cd $_pkgname-$pkgver
  # doesn't work anymore
  #make install root="$pkgdir"

  install -Dm644 mozpluggerrc "$pkgdir/etc/mozpluggerrc"
  install -d "$pkgdir/usr/bin/"
  install -m755 mozplugger-{helper,controller,linker,update} "$pkgdir/usr/bin/"
  install -Dm755 mozplugger.so "$pkgdir/usr/lib/mozilla/plugins/mozplugger.so"
  install -Dm644 mozplugger.7 "$pkgdir/usr/share/man/man7/mozplugger.7"
}