summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 90ee34e6dc6093e725b05e86f06e9966a507cd16 (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
# Maintainer: Josip Ponjavic <josipponjavic at gmail dot com>
# Contributor: 

pkgname=torrent-file-editor-qt4-git
_pkgname=torrent-file-editor
pkgver=0.3.9.r0.g4546e6d
pkgrel=1
pkgdesc="Qt based GUI tool designed to create and edit .torrent files. Qt4 build"
arch=('i686' 'x86_64')
url='https://sourceforge.net/projects/torrent-file-editor/'
license=('GPL3')
depends=('qjson')
makedepends=('cmake' 'git')
provides=("${_pkgname}" "${_pkgname}-qt4")
conflicts=("${_pkgname}" "${_pkgname}-qt5")
source=("git+https://github.com/drizt/torrent-file-editor.git")
md5sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/v//g'
}

build() {
  cd "${_pkgname}"
  cmake . \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    -DQT5_BUILD=OFF
  make
}

package() {
  cd "${_pkgname}"
  make DESTDIR="${pkgdir}" install
}