blob: 6356de5ebef3d80dcdabb8791022cb594b179437 (
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
|
# Maintainer: Clemmitt Sigler <cmsigler.online@gmail.com>
# Contributor: Piscium <groknok@gmail.com>
pkgname=qemacs-git
pkgdesc="QEmacs (Quick Emacs) is a very small editor with Emacs look and feel, syntax highlighting, UTF-8, dired mode with preview window, and many other features."
pkgver=r1200.909f097
pkgrel=1
_gitname="qemacs"
arch=('x86_64')
url="https://github.com/qemacs/qemacs"
license=('MIT')
depends=('libpng' 'libxv')
optdepends=('jp2a: for converting JPG images to ASCII')
makedepends=('git' 'libxrender' 'texi2html')
provides=('qemacs')
conflicts=('qemacs' 'qemacs-cvs')
source=("git+https://github.com/qemacs/qemacs.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_gitname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "$srcdir/$_gitname"
./configure --prefix=/usr --enable-x11 --enable-xv --enable-xshm --enable-xrender
make -j1
}
package() {
cd "$srcdir/$_gitname"
make -j1 DESTDIR=$pkgdir prefix="/usr/" datadir="/usr/share" mandir="/usr/share/man" install
install -Dm644 config.eg "$pkgdir/usr/share/qe/config.eg"
install -Dm644 qe-doc.html "$pkgdir/usr/share/qe/qe-doc.html"
install -Dm644 README.md "$pkgdir/usr/share/qe/README.md"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|