blob: e4aab4439b411a2a1a980f0fd6655b1e7b970878 (
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
37
38
39
40
41
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=notepadqq
pkgver=1.4.8
pkgrel=0
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="fa1937b75a378fb81486a871a5b736f6ba216cd4b71f99e342e457de65ea034c2ee4d2c9f42754c4737671ccb1083fb1e6c946240ab2094042125430578141fa notepadqq-1.4.8.tar.gz"
|