blob: b2df2223dce941aff9309602d5444ec1f0c2ff77 (
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: Aetf <aetf at unlimitedcodeworks dot xyz>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
_gitname=CuteMarkEd
pkgname=cutemarked-git
pkgver=0.11.3.r849
pkgrel=1
pkgdesc="Qt Markdown Editor"
url="https://github.com/cloose/CuteMarkEd"
arch=('i686' 'x86_64')
license=('GPL2')
depends=('qt5-webkit' 'hunspell' "discount>=2.1.7" 'desktop-file-utils' 'hicolor-icon-theme')
makedepends=('git' 'qt5-tools')
provides=('cutemarked')
conflicts=('cutemarked')
source=("git://github.com/cloose/CuteMarkEd.git")
md5sums=('SKIP')
pkgver() {
cd $_gitname
_mainver=$(grep ProductVersion ${_gitname}.wxs | head -1 | cut -d= -f2 | tr -d \" | tr -d \? | tr \> .)
printf "%sr%s" $(echo $_mainver) $(git rev-list --count HEAD)
}
prepare() {
cd $_gitname
sed -i -e '/#include <QTableWidgetItem>/a #include <QAction>' app/optionsdialog.cpp
}
build() {
cd $_gitname
[[ -d build ]] || mkdir build
cd build
qmake ..
make
}
package() {
cd $_gitname/build
make INSTALL_ROOT="$pkgdir" install
}
|