summaryrefslogtreecommitdiff
path: root/xwpe/PKGBUILD
blob: 2f42805d00e057da00811b4fd886b8276e7a400b (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
# Maintainer: Deposite Pirate <dpirate at metalpunks dot info>

pkgname=xwpe
pkgver=1.5.30a
pkgrel=1
pkgdesc="A Borland IDE-like text editor"
arch=('i686' 'x86_64')
url="http://www.identicalsoftware.com/xwpe"
license=('GPL2')
depends=('ncurses' 'gpm' 'zlib' 'libice' 'libx11')
source=("http://www.identicalsoftware.com/xwpe/$pkgname-$pkgver.tar.gz"
        'xwpe-1.5.30a-makefile.patch')
sha256sums=('fce37a5dd3afd7102a73d187eda8b9d1ab88bf5db649f385b8cd13e72e0c7961'
            'SKIP')

prepare() {
  cd "${pkgname}-${pkgver}"

  # Allow building a version without X
  patch -p1 -i ../xwpe-1.5.30a-makefile.patch
}

build() {
  cd "${pkgname}-${pkgver}"
  CFLAGS="${CFLAGS}" ./configure \
   --prefix=/usr \
   --libdir='${prefix}/share'
  make wpe
  mv wpe wpe.save
  make
}

package() {
  cd "${pkgname}-${pkgver}"
  make install \
   prefix="${pkgdir}/usr" \
   MANDIR="${pkgdir}/usr/share/man" \

  (
    cd "${pkgdir}/usr/bin" ; rm -f we wpe
  )

  install -m755 wpe.save "${pkgdir}/usr/bin/wpe"

  (
    cd "${pkgdir}/usr/bin" ; ln -sf wpe we
  )

  install -Dm644 xwpe.desktop \
   "${pkgdir}/usr/share/applications/${pkgname}.desktop"

  install -dm755 "${pkgdir}/usr/share/doc/${pkgname}"

  install -m644 CHANGELOG README \
   "${pkgdir}/usr/share/doc/${pkgname}"
}