summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaytars2020-03-16 21:51:08 +0800
committerBaytars2020-03-16 21:51:08 +0800
commitcda85ece8e713d5b75666496a3a4e7e3afb72fb8 (patch)
tree0e116ac8bc9945d28bc89b56736a271ef4a1a2c3
downloadaur-cda85ece8e713d5b75666496a3a4e7e3afb72fb8.tar.gz
Initial commit
-rw-r--r--.SRCINFO24
-rw-r--r--AmbulantPlayer_gtk.desktop10
-rw-r--r--AmbulantPlayer_gtk.install11
-rw-r--r--PKGBUILD38
4 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ba7d3fbc170
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = ambulant-player-gtk-git
+ pkgdesc = open-source media player with support for SMIL 3.0
+ pkgver = 2.6
+ pkgrel = 1
+ url = https://www.ambulantplayer.org/
+ install = AmbulantPlayer_gtk.install
+ arch = x86_64
+ license = LGPL
+ makedepends = make
+ makedepends = automake
+ makedepends = git
+ makedepends = autoconf
+ depends = ed
+ depends = python2
+ depends = python
+ provides = AmbulantPlayer_gtk
+ conflicts = AmbulantPlayer_gtk
+ source = git+https://e.coding.net/Baytars/ambulant-2.6.git
+ source = AmbulantPlayer_gtk.desktop
+ sha256sums = SKIP
+ sha256sums = a595aff43accef379a2e3f92209a7db4230917a8a071453003494a5ba9b7b02c
+
+pkgname = ambulant-player-gtk-git
+
diff --git a/AmbulantPlayer_gtk.desktop b/AmbulantPlayer_gtk.desktop
new file mode 100644
index 00000000000..415279e765e
--- /dev/null
+++ b/AmbulantPlayer_gtk.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=Ambulant Player
+GenericName=open-source media player with support for SMIL 3.0
+Comment=open-source media player with support for SMIL 3.0
+Exec=AmbulantPlayer_gtk %f
+Icon=AmbulantPlayer_gtk
+Terminal=false
+Categories=Graphics;
+StartupNotify=true
diff --git a/AmbulantPlayer_gtk.install b/AmbulantPlayer_gtk.install
new file mode 100644
index 00000000000..5e5cfef4d9f
--- /dev/null
+++ b/AmbulantPlayer_gtk.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ update-desktop-database -q
+}
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cb7d6c4d4cd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# 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=('ed' 'python2' 'python')
+makedepends=('make' 'automake' 'git' 'autoconf')
+provides=('AmbulantPlayer_gtk')
+conflicts=('AmbulantPlayer_gtk')
+install=AmbulantPlayer_gtk.install
+source=(git+$_git 'AmbulantPlayer_gtk.desktop')
+sha256sums=('SKIP'
+ '911a056fae3e4e403092027d3b4a56080ec1dcec23736b8c3ef45a489d2a7512')
+
+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
+ sudo 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/pixmaps/AmbulantPlayer_gtk.png
+ install -D -m644 ${startdir}/AmbulantPlayer_gtk.desktop ${pkgdir}/usr/share/applications/AmbulantPlayer_gtk.desktop
+}