aboutsummaryrefslogtreecommitdiffstats
path: root/testing/notepadqq/APKBUILD
blob: 179bb39ac6ecd6376c646acdeb5be79d26e8f67b (plain) (blame)
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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=notepadqq
pkgver=1.3.6
pkgrel=2
pkgdesc="Notepad++-like text editor for Linux"
url="https://notepadqq.altervista.org/"
arch="x86 x86_64"
license="GPL3"
depends="coreutils qt5-qtwebkit qt5-qtsvg qt5-qtbase"
makedepends="qt5-qtbase-dev qt5-qttools-dev qt5-qtsvg-dev 
	qt5-qtwebkit-dev qt5-qtwebkit"
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	cd "$builddir"
	sed -i \
		-e 's:/lib/notepadqq/:/bin/:' \
		src/ui/ui.pro
	sed -i -e 's:\.\./\.\.:\.\.:' src/ui/notepadqq.cpp
}

build() {
	cd "$builddir"
	qmake-qt5 PREFIX=/usr LRELEASE=/usr/lib/qt5/bin/lrelease notepadqq.pro
	make
}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="1940b2e7e68c1dfdcf6ebbcbe21f5816c083d6546271af845a3698940d23a823a01949299f8e4e2d3edbbcba0dd52fa0df28b2e26c29bdf29ae7003ff0c800f2  notepadqq-1.3.6.tar.gz"