blob: 8aa4a7e4a7c5eb681487e6d240f0484325c62330 (
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
|
# Contributor: Thomas Bächler <thomas@archlinux.org>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=joe-hg
pkgver=4.6.r1077.8078f28eb18c
pkgrel=2
pkgdesc="Joe's own editor - hg checkout"
arch=('x86_64')
url="https://joe-editor.sourceforge.io/"
license=('GPL')
depends=('ncurses')
conflicts=('joe')
provides=('joe')
optdepends=('gpm: console mouse support')
makedepends=('mercurial')
backup=('etc/joe/ftyperc' 'etc/joe/jicerc.ru' 'etc/joe/jmacsrc'
'etc/joe/joerc' 'etc/joe/jpicorc' 'etc/joe/jstarrc' 'etc/joe/rjoerc')
source=("joe::hg+http://hg.code.sf.net/p/joe-editor/mercurial")
sha256sums=('SKIP')
pkgver() {
cd ${pkgname%-hg}
_appver=$(awk -F", " '/AC_INIT/ {print $2}' configure.ac|tr -d \))
printf "%s.r%s.%s" "${_appver}" "$(hg identify -n)" "$(hg identify -i)"
}
build() {
cd ${pkgname%-hg}
./autojoe
./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man
make
}
package() {
cd ${pkgname%-hg}
make DESTDIR="${pkgdir}/" install
}
|