summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f80eff72bad75ac980499d903067f1c3645ce053 (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
# Maintainer: Fabio 'Lolix' Loli <lolix@disroot.org> -> https://github.com/FabioLolix

pkgname=textosaurus
epoch=1
pkgver=0.9.3.1
pkgrel=1
pkgdesc="Simple cross-platform text editor based on Qt and Scintilla"
arch=('x86_64' 'i686')
url="https://github.com/martinrotter/textosaurus"
license=(GPL3)
depends=('qt5-base' 'qt5-svg')
makedepends=('git' 'qt5-tools')
provides=('textosaurus')
conflicts=('textosaurus' 'textosaurus-git')
replaces=('textilosaurus')
_commit=1710f53c81dbcf4788fd23ebaabf6ec77a4a3fb6
source=("git+https://github.com/martinrotter/textosaurus#commit=$_commit")
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/-/+/g'
}

prepare() {
  cd "${srcdir}/${pkgname}"
  install -d build

  git submodule init
  git submodule update
}

build() {
  cd "${srcdir}/${pkgname}/build"
  qmake ../textosaurus.pro -r CONFIG+=release PREFIX=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}/build"
  make install INSTALL_ROOT="${pkgdir}/"
}