summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d2ffa540a02c1181b4f32bbbac4d68a9f95b8701 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
# Contributor: Dwight Schauer <dschauer@gmail.com>
# Contributor: GdelaRey <arch at delarey dot org>
# Contributor: aksr <aksr at t-com dot me>
# Maintainer: David Hummel <david dot hummel at gmail point com>

pkgbase='hessling-editor-das'
pkgname=('hessling-editor-das-con' 'hessling-editor-das-sdl2' 'hessling-editor-das-x11')
pkgver=4.0
pkgrel=2
pkgdesc="A powerful text editor modelled on the VM/CMS text editor XEDIT with the best features of Mansfield Software's Kedit."
arch=('i686' 'x86_64')
url="http://hessling-editor.sourceforge.net/"
license=('GPL-2.0-or-later')
makedepends=(
    'libx11'
    'libxaw'
    'libxmu'
    'libxpm'
    'libxt'
    'ncurses'
    'oorexx'
    'sdl2'
)
provides=('hessling-editor')
source=("http://downloads.sourceforge.net/$provides/the-$pkgver.tar.gz")
sha512sums=('9d8a9d864caa729a83f41932186eb6929e69207231a0d241b9574cf6af02aeeb28b53492af54e4c1ced3afa868060e8031aadf33b1168a8d9aeae14a8e9c1c86')

prepare() {
  cd "the-$pkgver"

  if [ -d ncurses ]; then
    rm -rf ncurses
  fi
  mkdir --parents ncurses

  if [ -d sdlcurses ]; then
    rm -rf sdlcurses
  fi
  mkdir --parents sdlcurses

  if [ -d xcurses ]; then
    rm -rf xcurses
  fi
  mkdir --parents xcurses
}

build() {
  cd "$srcdir/the-$pkgver/ncurses"
  ../configure --with-rexx=oorexx --with-curses=ncurses --prefix=/usr

  cd "$srcdir/the-$pkgver/sdlcurses"
  ../configure --with-rexx=oorexx --with-curses=pdcurses-sdl2 --prefix=/usr

  cd "$srcdir/the-$pkgver/xcurses"
  ../configure --with-rexx=oorexx --with-curses=pdcurses-x11 --prefix=/usr
}

package_hessling-editor-das-con(){
  conflicts=('hessling-editor-das-sdl2' 'hessling-editor-das-x11')
  depends=(
    'ncurses'
    'oorexx'
  )

  cd "$srcdir/the-$pkgver/ncurses"
  make DESTDIR="$pkgdir" install
}

package_hessling-editor-das-sdl2(){
  conflicts=('hessling-editor-das-con' 'hessling-editor-das-x11')
  depends=(
    'oorexx'
    'sdl2'
  )

  cd "$srcdir/the-$pkgver/sdlcurses"
  make DESTDIR="$pkgdir" install
}

package_hessling-editor-das-x11(){
  conflicts=('hessling-editor-das-con' 'hessling-editor-das-sdl2')
  depends=(
    'libx11'
    'libxaw'
    'libxmu'
    'libxpm'
    'libxt'
    'oorexx'
  )

  cd "$srcdir/the-$pkgver/xcurses"
  make DESTDIR="$pkgdir" install
}