blob: 6dfa6935fa898d5d60b29ac071c482a189ff2499 (
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
|
# Maintainer: TwoFinger
pkgname=textadept-gtk3
_basename=textadept
pkgver=12.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)
depends=(gtk3 ncurses)
makedepends=(wget unzip cmake)
provides=($pkgname)
conflicts=(${_basename} ${_basename}-gtk2)
source=("$url/archive/${_basename}_$pkgver.tar.gz"
0001_fix-build.diff)
sha256sums=('74e480e07fd559103ec3171a754df5d1879322baf395107ad705f97a1583bbf0'
'a6e19e16eddfe0c2c88734b2d2daa321b7c1dfde18aaae30376ea7b4219acb18')
prepare() {
cd "${_basename}-${_basename}_$pkgver"
# fix https://github.com/orbitalquark/textadept/issues/571
# not using the commit, as the CMakeLists structure changed vastly since 12.4
patch -Np1 -i "${srcdir}"/0001_fix-build.diff
}
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 QT=OFF
cmake --build build_dir -j
}
package() {
cd "${_basename}-${_basename}_$pkgver"
cmake --install build_dir
}
|