summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fccb4963f7c065399d12708487f5cfafe7f12ae8 (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
# Maintainer: Steffen Weber <-boenki-gmx-de->
# Contributor: Nick B <Shirakawasuna at gmail _dot_com>

pkgname=juffed
pkgver=0.10
pkgrel=2
pkgdesc="Simple tabbed text editor with syntax highlighting, based on Qt4"
arch=('i686' 'x86_64')
url="http://juffed.com"
license=('GPL2')
makedepends=('cmake')
depends=('qscintilla' 'enca')
conflicts=('juffed-git' 'juffed-qt5-git')
install=$pkgname.install
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-1054.tar.bz2
        $pkgname-build-without-error.patch::https://github.com/Mezomish/juffed/commit/054bf0c0adf19a0bf5be58cf54049379f50b9211.patch
        $pkgname-fix-build-with-enca.patch::https://github.com/Mezomish/juffed/commit/0f724eb1463c5bb87d04ebed32ea33d2d6e460ae.patch)
md5sums=('33ca5c94fd4aedb9925e58f8f9ba9a7c'
         'e70c3050d06d26a4f3be7d1b04140492'
         '22957a35803d971b306d8d726d5f14fe')

prepare() {
  cd $pkgname-$pkgver
  patch -p1 -i ../$pkgname-build-without-error.patch
  patch -p1 -i ../$pkgname-fix-build-with-enca.patch
}

build() {
  cd $pkgname-$pkgver
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib -DCMAKE_BUILD_TYPE=release
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR=$pkgdir install
}