# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> # Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> pkgname=featherpad pkgver=0.9.1 pkgrel=0 pkgdesc="Featureful Qt-based text editor" url="https://github.com/tsujan/FeatherPad" arch="all" options="!check" # No test suite. license="GPL-3.0+" depends="" makedepends="qt5-qtbase-dev qt5-qtx11extras-dev qt5-qttools-dev qt5-qtsvg-dev libx11-dev libxext-dev" subpackages="$pkgname-lang" source="FeatherPad-$pkgver.tar.gz::https://github.com/tsujan/FeatherPad/archive/V$pkgver.tar.gz" builddir="$srcdir/FeatherPad-$pkgver" build() { cd "$builddir" qmake make PREFIX=/usr } lang() { mkdir -p "$subpkgdir"/usr/share/$pkgname mv "$pkgdir"/usr/share/$pkgname/translations "$subpkgdir"/usr/share/$pkgname/translations } package() { cd "$builddir" make INSTALL_ROOT="$pkgdir" PREFIX=/usr install } sha512sums="5a301757ed320f3eff157821b0844b86c74322887462c60e1feb79790898ce5b1ba2e80cb5e1440d5cfa350f6dbb390d10e27aa05f953e49bfd6720c89c610ea FeatherPad-0.9.1.tar.gz"