summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6fdb3fdb2dc0e5b6afc573f064c853f5a03f9b0c (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
# Maintainer: Peter Mattern <pmattern at arcor dot de>

_pkgname=featherpad
pkgname=$_pkgname-git
pkgver=1.5.1.r6.gd72f662b
pkgrel=1
pkgdesc='Lightweight Qt5 plain text editor for Linux'
arch=('i686' 'x86_64')
url='https://github.com/tsujan/featherpad'
license=('GPL-3.0-only')
depends=('qt6-svg' 'hunspell' 'desktop-file-utils' 'gtk-update-icon-cache')
makedepends=('git' 'cmake' 'qt6-tools')
optdepends=('qt6-translations: localized keyboard shortcuts')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+${url}.git")
sha256sums=("SKIP")

pkgver() {
  cd $_pkgname
  git describe --always | sed "s:^V::;s:-:.r:;s:-:.:"
}

build() {
  rm -Rf build && mkdir build
  cd build
  cmake $srcdir/$_pkgname/
  make
}

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