summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1f1151c3d2110e9f866ea7dddcaae13de7fd8fb8 (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
# Maintainer: Solomon Choina <shlomochoina@gmail.com>
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org>
# Contributor: Philipp 'TamCore' B. <philipp [at] tamcore [dot] eu>

pkgname=ghostwriter-git
pkgver=2.1.0.r0.g2495f9b
pkgrel=1
pkgdesc="Cross-platform, aesthetic, distraction-free Markdown editor."
arch=(i686 x86_64)
url="https://github.com/wereturtle/ghostwriter"
license=('GPL3')
conflicts=('ghostwriter')
provides=('ghostwriter')
makedepends=('git' 'qt5-tools')
depends=('qt5-base' 'qt5-svg' 'hunspell' 'desktop-file-utils' 
         'gtk-update-icon-cache' 'discount' 'qt5-webengine')
optdepends=('hunspell: spell checking')
source=(git+https://github.com/wereturtle/ghostwriter.git)
sha256sums=('SKIP')

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

build() {
  cd "${pkgname%-git}"
  qmake PREFIX=/usr
  make
}

package() {
  cd "${pkgname%-git}"
  make INSTALL_ROOT="$pkgdir/" install
}