use official PKGBUILD file for git version

This commit is contained in:
Martchus 2015-09-03 02:04:12 +02:00
parent a4d37e92bf
commit 3754fff1ca
3 changed files with 41 additions and 14 deletions

View File

@ -51,4 +51,5 @@ OTHER_FILES += \
isoviewer/default/isoviewer.install \
dbus-soundrecorder/default/PKGBUILD \
subtitlecomposer/default/PKGBUILD \
subtitlecomposer/git/PKGBUILD
subtitlecomposer/git/PKGBUILD \
subtitlecomposer/git/subtitlecomposer.install

View File

@ -1,31 +1,46 @@
# Maintainer: Arthur Țițeică /arthur.titeica/gmail/com
# Contributor: Jonas Heinrich <onny@project-insanity.org>
# Contributor: Mladen Milinkovic <maxrd2@smoothware.net>
# Maintainer: Mladen Milinkovic <maxrd2@smoothware.net>
# You can install/update Subtitle Composer from repository if you add following to /etc/pacman.conf
# [subtitlecomposer]
# # Subtitle Composer
# SigLevel = PackageRequired
# Server = http://smoothware.net/$repo/$arch
pkgname=subtitlecomposer-git
pkgver=v0.5.6.2.g6528219
pkgver=v0.5.7.6.g2bde63e
pkgrel=1
pkgdesc="A KDE subtitle editor"
pkgdesc="A KDE subtitle editor - nightly build"
arch=('i686' 'x86_64')
url="https://github.com/maxrd2/subtitlecomposer"
license=('GPL')
depends=('kdelibs' 'gettext')
makedepends=('cmake' 'automoc4' 'git')
optdepends=("mplayer: for MPlayer backend")
source=('git+https://github.com/maxrd2/subtitlecomposer.git')
conflicts=('subtitlecomposer')
install=('subtitlecomposer.install')
optdepends=(
'mpv: for MPV backend'
'mplayer: for MPlayer backend'
'mplayer2: for MPlayer backend'
'gstreamer: for GStreamer backend'
'xine-lib: for Xine backend'
)
source=('git+file:///home/max/projects/SubtitleComposer')
md5sums=('SKIP')
pkgver() {
cd "subtitlecomposer"
git describe --always | sed 's|-|.|g'
export APP_VER=${pkgver}
cd ${srcdir}/SubtitleComposer
git describe --always | sed 's|-|.|g'
}
build() {
cd "subtitlecomposer"
cmake -DCMAKE_INSTALL_PREFIX=/usr
make
cd ${srcdir}/SubtitleComposer
cmake -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd "subtitlecomposer"
make DESTDIR=${pkgdir} install
cd ${srcdir}/SubtitleComposer
make DESTDIR=${pkgdir} install
}

View File

@ -0,0 +1,11 @@
post_install() {
update-desktop-database -q
}
post_upgrade() {
post_install $1
}
post_remove() {
post_install $1
}