blob: 16b391b20cd86c25f1ea09c7047f3cdbe25a6e6b (
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
|
# Contributor: TwoFinger
pkgname=textadept-curses
_basename=textadept
pkgver=12.6
pkgrel=1
pkgdesc="Fast, minimalist, and remarkably extensible cross-platform text editor"
arch=(i686 x86_64 aarch64)
url="https://github.com/orbitalquark/textadept"
license=(MIT)
makedepends=(ncurses wget unzip cmake)
source=("$url/archive/${_basename}_$pkgver.tar.gz")
sha256sums=('2e45cbd492f88328cb9a91495af2885a1e7d72b9c33ddd1eeb43c1f23f7b7bb2')
build() {
cd "${_basename}-${_basename}_$pkgver"
export LDFLAGS=-Wl,-z,relro,-z,now
cmake -B build_dir \
-D CMAKE_INSTALL_PREFIX="$pkgdir"/usr \
-D CMAKE_BUILD_TYPE=None \
-D GTK2=OFF -D GTK3=OFF -D QT=OFF
cmake --build build_dir -j
}
package_textadept-curses() {
depends=(ncurses)
provides=($pkgname)
conflicts=(${_basename} ${_basename}-gtk2 ${_basename}-gtk3)
cd "${_basename}-${_basename}_$pkgver"
cmake --install build_dir
}
|