summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 52b3dbf987070616b78f38016de9c23dbeebe46b (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
41
42
43
44
45
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>

pkgname=bdsup2subpp-git
pkgver=1.0.3.37.g5f8c159
pkgrel=1
pkgdesc="Subtitle conversion tool for image based stream formats with scaling capabilities and some other nice features. (GIT version)"
arch=('x86_64')
license=('Apache')
url='http://forum.doom9.org/showthread.php?t=167051'
depends=('qt5-base')
makedepends=('git'
             'qt5-tools'
             )
provides=('bdsup2subpp')
conflicts=('bdsup2subpp')
source=('bdsup2subpp::git+https://github.com/amichaeltm/BDSup2SubPlusPlus.git')
sha256sums=('SKIP')

pkgver() {
  cd bdsup2subpp
  echo "$(git describe --long --tags | tr - .)"
}

prepare() {
  mkdir -p build

  sed 's|bdsup2sub++|bdsup2subpp|g' \
    -i bdsup2subpp/src/bdsup2sub++.pro \
    -i bdsup2subpp/bundle/linux/bdsup2sub++.desktop

}

build() {
  cd build
  qmake "${srcdir}/bdsup2subpp/src/bdsup2sub++.pro"

  make
}

package() {
  install -Dm755 build/bdsup2subpp "${pkgdir}/usr/bin/bdsup2subpp"

  install -Dm644 bdsup2subpp/bundle/linux/bdsup2sub++.desktop "${pkgdir}/usr/share/applications/bdsup2subpp.desktop"
  install -Dm644 bdsup2subpp/bundle/linux/bdsup2subpp.png "${pkgdir}/usr/share/pixmaps/bdsup2subpp.png"
}