summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 19f17b38b1d0f06dcf4b59da21bee8c0d47cdce1 (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
pkgname=po2lmo-git
_pkgname=po2lmo
pkgver=r1.750179b
pkgrel=1
pkgdesc="Openwrt po2lmo"
arch=('any')
url="https://github.com/openwrt-dev/po2lmo.git"
license=('GPL3')
depends=()
makedepends=('git')
optdepends=()
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$pkgname::git+https://github.com/openwrt-dev/po2lmo.git")
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

package() {
  cd "$pkgname"
  make
  install -m 755 src/po2lmo -D ${pkgdir}/usr/bin/po2lmo
}