summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 780d494c7b255523898826cc0f4dca1f3151ce7e (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
44
# Maintainer: aksr <aksr at t-com dot me>
pkgname=edit-git
pkgver=0.r309.b1634e6
pkgrel=1
epoch=
pkgdesc="An experimental text editor, a relaxing mix of vi & acme."
arch=('i686' 'x86_64')
url="http://c9x.me/edit/"
license=('unknown')
groups=()
depends=('')
makedepends=('git' 'texlive-bin' 'texlive-core')
optdepends=()
checkdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
changelog=
install=echo.install
source=("$pkgname::git://c9x.me/ed.git")
noextract=()
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$pkgname"
  make
  cweave vicmd; tex vicmd; pdftex vicmd
}

package() {
  cd "$srcdir/$pkgname"
  ## Renamed to Edit to avoid conflict with vi package.
  install -Dm755 obj/edit $pkgdir/usr/bin/Edit
  install -Dm644 vicmd.dvi $pkgdir/usr/share/doc/$pkgname/vicmd.dvi
  install -Dm644 vicmd.pdf $pkgdir/usr/share/doc/$pkgname/vicmd.pdf
}