summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4b18a3287960d610dcb05e1339c94c722e6472d0 (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: jakyote <jakkyote - gmail>

pkgname=notepadqq-ote-git
_pkgname=notepadqq
pkgver=0.52.1.r631.gbfbdf7c
pkgrel=1
pkgdesc="Notepad++-like editor for the Linux desktop w/ OTE backend"
arch=('x86_64')
url="https://github.com/JuBan1/notepadqq"
license=('GPL3')
depends=('qt5-base' 'uchardet' 'hicolor-icon-theme' 'desktop-file-utils')
optdepends=('nodejs: Extensions support (experimental)')
makedepends=('git' 'qt5-tools')
provides=('notepadqq')
conflicts=('notepadqq' 'notepadqq-legacy' 'notepadqq-git')
options=('!emptydirs')
source=("git+https://github.com/JuBan1/notepadqq.git")
sha1sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  set -o pipefail
  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${_pkgname}"
  ./configure --prefix /usr
  make
}

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