summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 445c09364b9d2f797aa39ad33c4fcdde15edb3d5 (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
# Maintainer: Felix Yan <felixonmars@archlinux.org>

_pkgname=chnroutes2
pkgname=$_pkgname-git
pkgver=0.8.6be8bb5
pkgrel=1
pkgdesc="Better aggregated chnroutes"
arch=('any')
url="https://github.com/ym/chnroutes2"
license=('custom:WTFPL') 
depends=()
makedepends=('git')
source=("git+https://github.com/ym/${_pkgname}.git")
md5sums=('SKIP')

pkgver() {
  cd $_pkgname
  echo 0.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $_pkgname
  install -Dm644 chnroutes.txt "$pkgdir"/usr/share/chnroutes2/chnroutes.txt
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

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