summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 05880d6ed42b3db1332d3668722effb5ac25426f (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
# Maintainer: PkmX <pkmx.tw@gmail.com>
pkgname=bug5-git
_pkgname=bug5
pkgver=1.18.r2.g3509bde
pkgrel=1
pkgdesc="A Big5/GBK <-> UTF-8 translating layer in terminal"
arch=('i686' 'x86_64')
url="https://github.com/buganini/bug5"
license=('BSD')
depends=('bsdconv')
makedepends=('git')
provides=('bug5')
conflicts=('bug5')
source=("$_pkgname::git+https://github.com/buganini/bug5")
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$_pkgname"
  make PREFIX=/usr
}

package() {
  cd "$srcdir/$_pkgname"
  install -d "$pkgdir/usr/bin"
  make DESTDIR="$pkgdir" PREFIX=/usr install
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

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