summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 16ab8f4201900ab76a62071b2dfee377813ca122 (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: spider-mario <spidermario@free.fr>
# Contributor: Baptiste Jonglez <baptiste--aur at jonglez dot org>
pkgname=jbofihe-git
pkgver=0.40
epoch=2
pkgrel=1
pkgdesc="Tools to operate on Lojban text (main feature: approximate translation to English)."
arch=('i686' 'x86_64')
url="https://github.com/lojban/jbofihe"
license=('GPL2')
depends=('glibc')
makedepends=('git' 'perl')
options=('!makeflags')
source=(git+https://github.com/lojban/jbofihe)
sha512sums=(SKIP)

pkgver() {
  cd jbofihe
  git describe --tags | sed -e 's/^[^0-9\-]*//' -e 'y/-/./'
}

build() {
  cd jbofihe

  msg2 "Running config.pl..."

  perl config.pl --prefix=/usr

  msg2 "Running make..."

  # There is a Perl script that expects the locale to be an English one.
  LC_ALL=C make all
}

package() {
  cd jbofihe
  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et: