blob: bf975d12620fae29518c470d538a84eb8bd5f245 (
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
|
# Maintainer: Tom <reztho@archlinux.org>
# Based on a contribution of: bitwave
pkgname=textadept
pkgver=11.1
pkgrel=1
pkgdesc="A fast, minimalist, and remarkably extensible cross-platform text editor"
arch=('i686' 'x86_64' 'aarch64')
url="http://foicica.com/textadept/"
license=('MIT')
depends=('lua' 'gtk2')
makedepends=('mercurial' 'wget' 'unzip')
provides=("$pkgname")
conflicts=('textadept-bin')
replaces=('textadept-bin')
source=("https://github.com/orbitalquark/textadept/archive/textadept_${pkgver}.tar.gz"
"https://github.com/orbitalquark/textadept/releases/download/textadept_${pkgver}/textadept_${pkgver}.modules.zip")
build() {
cd "$srcdir/textadept-textadept_${pkgver}/src"
unset MAKEFLAGS
unset CXXFLAGS
unset CFLAGS
make deps
make
make curses
}
package() {
cd "$srcdir/textadept-textadept_${pkgver}/src"
make PREFIX=/usr DESTDIR="$pkgdir/" install
rm "$pkgdir/usr/share/pixmaps/"textadept{.svg,.png}
make curses PREFIX=/usr DESTDIR="$pkgdir/" install
# Additional modules
cd "$srcdir/textadept-modules"
cp -r ./* "$pkgdir/usr/share/$pkgname/"
# License
install -d "$pkgdir/usr/share/licenses/textadept"
ln -s /usr/share/textadept/LICENSE "$pkgdir/usr/share/licenses/$pkgname/"
# Documentation
install -d "$pkgdir/usr/share/doc"
ln -s /usr/share/textadept/docs "$pkgdir/usr/share/doc/$pkgname"
}
md5sums=('ddf9350e5d29665dc18c115b536f4e51'
'd064d0758bb8a57f0afb8f7bd99e1bbc')
|