summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 59861a3c3a7168e10d4a79c4bc1043e47df94637 (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
46
47
48
49
# Maintainer: Iván Ruvalcaba <mario.i.ruvalcaba[at]gmail[dot]com>

_pkgname=ghostwriter
pkgname="${_pkgname}-l10n-git"
_commit=eefe9c3 # 7 digits
pkgver=v1.5.0.r37.geefe9c3
pkgrel=1
pkgdesc="A cross-platform, aesthetic, distraction-free Markdown editor"
arch=('i686' 'x86_64')
url="https://wereturtle.github.io/ghostwriter/"
license=('GPL3')
depends=('qt5-webkit' 'hunspell' 'hicolor-icon-theme')
makedepends=('qt5-tools')
optdepends=('multimarkdown: A superset of Markdown with various output formats'
            'pandoc: Conversion between markup formats'
            'cmark: CommonMark parsing and rendering library and program in C')
provides=('ghostwriter')
conflicts=('ghostwriter' 'ghostwriter-git')
source=("${_pkgname}::git+https://github.com/wereturtle/${_pkgname}.git#commit=${_commit}")
sha256sums=('SKIP')

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

build() {
  cd "${_pkgname}"
  lrelease translations/ghostwriter_*.ts
  qmake PREFIX=/usr
  make
}

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

  # Doc files
  install -Dm644 CREDITS.md \
    "${pkgdir}/usr/share/doc/${_pkgname}/CREDITS.md"
  install -Dm644 README.md \
    "${pkgdir}/usr/share/doc/${_pkgname}/README.md"

  # License
  install -Dm644 COPYING \
    "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 cc=80 et: