summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ade825384f852f651c3d54f9b55630113d2fdbf5 (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
39
40
# Contributor: Baytars <feicuihuangfeng@qq.com>
pkgname=ambulant-player-gtk-git
pkgver=2.6
pkgrel=1
pkgdesc="open-source media player with support for SMIL 3.0"
arch=('x86_64')
url="https://www.ambulantplayer.org/"
_git=https://e.coding.net/Baytars/ambulant-2.6.git
license=('LGPL')
depends=('ffmpeg')
makedepends=('make' 'automake' 'git' 'autoconf' 'ed' 'python2' 'python')
provides=('AmbulantPlayer_gtk')
conflicts=('AmbulantPlayer_gtk')
install=AmbulantPlayer_gtk.install
source=(git+$_git)
sha256sums=('SKIP')

build() {
  cd ${srcdir}/ambulant-2.6

  echo "Below script has been written in build.sh"
  echo "Make sure you have Modified po/Makefile.in. The GETTEXT_MACRO_VERSION variable has to match your current gettext version."
  gettext --version
  cd ./third_party_packages
  python2 ../scripts/build-third-party-packages.py linux
  cd ../
  ./autogen.sh
  ./configure
  cfgPath=`readlink ./libltdl/config-h.in`
  rm ./libltdl/config-h.in
  cp $cfgPath ./libltdl/config-h.in
  make
}

package() {
  install -D -m755 ${srcdir}/ambulant-2.6/src/player_gtk/AmbulantPlayer_gtk ${pkgdir}/usr/bin/AmbulantPlayer_gtk
  install -d ${pkgdir}/usr/share/AmbulantPlayer_gtk
  install -D -m644 ${srcdir}/ambulant-2.6/src/libambulant/Ambulant.png ${pkgdir}/usr/share/ambulant/icons/Ambulant.png
  install -D -m644 ${srcdir}/ambulant-2.6/src/player_gtk/ambulant-gtk.desktop ${pkgdir}/usr/share/applications/ambulant-gtk.desktop
}