blob: 2e6c8f0124723fb6c7a5c4b19f72e9d3f3dccd89 (
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
|
# Maintainer: aksr <aksr at t-com dot me>
pkgname=sciteco-git
pkgver=r1097.52d66c5
pkgrel=1
pkgdesc='Advanced TECO dialect and interactive screen editor based on Scintilla'
arch=('i686' 'x86_64')
url='https://github.com/rhaberkorn/sciteco'
license=('GPL3')
makedepends=('git' 'groff')
depends=('ncurses')
conflicts=("${pkgname%-*}")
source=("$pkgname::git+$url")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$pkgname"
git submodule update --init
autoreconf -iv
}
build() {
cd "$srcdir/$pkgname"
export CFLAGS="$CFLAGS -O3 -flto"
export CXXFLAGS="$CXXFLAGS -O3 -flto"
export LDFLAGS="$LDFLAGS -flto"
./configure --prefix=/usr \
--with-scitecodatadir=/usr/share/sciteco
make
}
package() {
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir/" install
install -D -m644 README $pkgdir/usr/share/doc/${pkgname%-*}/README.md
}
|