archrelease: copy trunk to community-any
[arch-community.git] / xjadeo / trunk / PKGBUILD
blob700db8a7f54830daa644789ec82046bc234c9188
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: speps <speps at aur dot archlinux dot org>
4 pkgname=xjadeo
5 pkgver=0.8.12
6 pkgrel=3
7 pkgdesc="A simple video player that is synchronized to jack transport"
8 arch=(x86_64)
9 url="https://github.com/x42/xjadeo"
10 license=(GPL2)
11 depends=(
12   glibc
13   imlib2
14   libx11
15   libxext
16   libxpm
17   libxv
19 makedepends=(
20   alsa-lib
21   ffmpeg
22   gendesk
23   git
24   glu
25   jack
26   libglvnd
27   liblo
28   libltc
29   portmidi
31 backup=(etc/xjadeorc)
32 source=($url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
33 sha512sums=('c63a18b31e9800cf7f79b90da95bdcaa60c528b586d3a105c47bd514e478e0ff5b8cefd8ada1b9dab51382799fadc297dd26688b648b3475cb33382acf2aa9c0')
34 b2sums=('8acead9046c24f7d15028f40d60bcdb29fdda128267ee63e173721f6d62e751e3c9983c7fe4831e78a605c5d54d39fef0ef5093b9bf3e51605c44ee928c271d6')
36 prepare() {
37   cd $pkgname-$pkgver
38   # https://github.com/x42/xjadeo/issues/54
39   # libporttime.so is replaced by libportmidi.so
40   sed -e 's/ -lporttime//' -i configure.ac
41   gendesk -n \
42           --pkgname $pkgname \
43           --pkgdesc "$pkgdesc" \
44           --categories "AudioVideo;Audio"
45   autoreconf -fiv
48 build() {
49   cd $pkgname-$pkgver
50   ./configure --prefix=/usr --sysconfdir=/etc
51   make
54 package() {
55   depends+=(
56     alsa-lib libasound.so
57     ffmpeg libavcodec.so libavformat.so libavutil.so libswscale.so
58     freetype2 libfreetype.so
59     jack libjack.so
60     libglvnd libGL.so
61     liblo liblo.so
62     libltc libltc.so
63     portmidi libportmidi.so
64   )
66   cd $pkgname-$pkgver
67   make DESTDIR="$pkgdir" install
68   # config
69   install -vDm 644 doc/xjadeorc -t "$pkgdir/etc/"
70   # desktop file
71   install -vDm 644 $pkgname.desktop -t "$pkgdir/usr/share/applications/"
72   # icon
73   install -vDm 644 src/$pkgname/icons/xjadeoH128.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
74   # docs
75   install -vDm 644 {AUTHORS,ChangeLog,NEWS,README} -t "$pkgdir/usr/share/doc/$pkgname/"