blob: 793b1bff0edfd685354db910564ff7b2226418b9 (
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
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Tom <reztho@archlinux.org>
# Contributor: bitwave
pkgname=('textadept' 'textadept-gtk3' 'textadept-curses')
pkgver=11.4
pkgrel=2
pkgdesc="Fast, minimalist, and remarkably extensible cross-platform text editor"
arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/orbitalquark/textadept"
license=('MIT')
makedepends=('gtk2' 'gtk3' 'ncurses' 'wget' 'unzip')
source=("$pkgname-$pkgver.tar.gz::$url/archive/${pkgname}_$pkgver.tar.gz")
sha256sums=('f23deb6e178c0eab2d91f5f43d74945aa7d7e90ceb5cc043fc900f9e61562383')
prepare() {
cd "textadept-textadept_$pkgver/src"
make deps
## thanks lacsaP
sed -i '1008s/volatile//;1099s/volatile//;' scintilla/gtk/ScintillaGTKAccessible.cxx
## makes compile flags work again
sed -i \
-e 's/CFLAGS =/CFLAGS +=/g' \
-e 's/CXXFLAGS =/CXXFLAGS +=/g' \
-e 's/LDFLAGS =/LDFLAGS +=/g' \
Makefile
}
package_textadept() {
depends=('gtk2')
provides=('textadept-curses')
conflicts=('textadept-curses')
cd "textadept-textadept_${pkgver}/src"
if [[ -f ../textadept ]]; then
make clean
fi
make GTK2=1
make curses
make GTK2=1 PREFIX=/usr DESTDIR="$pkgdir" install
rm "$pkgdir/usr/share/pixmaps/"textadept{.svg,.png}
make curses PREFIX=/usr DESTDIR="$pkgdir" install
# License
install -Dm644 "$pkgdir/usr/share/textadept/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
# Documentation
install -d "$pkgdir/usr/share/doc"
ln -s /usr/share/textadept/docs "$pkgdir/usr/share/doc/$pkgname"
}
package_textadept-gtk3() {
depends=('gtk3')
provides=("$pkgbase" 'textadept-curses')
conflicts=("$pkgbase" 'textadept-curses')
cd "textadept-textadept_${pkgver}/src"
if [[ -f ../textadept ]]; then
make clean
fi
make
make curses
make PREFIX=/usr DESTDIR="$pkgdir" install
rm "$pkgdir/usr/share/pixmaps/"textadept{.svg,.png}
make curses PREFIX=/usr DESTDIR="$pkgdir" install
# License
install -Dm644 "$pkgdir/usr/share/textadept/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
# Documentation
install -d "$pkgdir/usr/share/doc"
ln -s /usr/share/textadept/docs "$pkgdir/usr/share/doc/$pkgname"
}
package_textadept-curses() {
depends=('ncurses')
cd "textadept-textadept_${pkgver}/src"
if [[ -f ../textadept ]]; then
make clean
fi
make curses
make curses PREFIX=/usr DESTDIR="$pkgdir" install
# License
install -Dm644 "$pkgdir/usr/share/textadept/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
# Documentation
install -d "$pkgdir/usr/share/doc"
ln -s /usr/share/textadept/docs "$pkgdir/usr/share/doc/$pkgname"
}
|