summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e5b5fb2f085e51531ea0ed17702d5ed63f15d753 (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
# Maintainer: Gustavo alvarez <sl1pkn07@gmail.com>

pkgname=mini18n-git
pkgver=0.2.1.r3261.b77edc86
pkgrel=1
pkgdesc="A a small and non-intrusive translation library designed for small memory and non-GNU systems. (GIT version)"
arch=('x86_64')
url='http://wiki.yabause.org/index.php5?title=Mini18n'
license=('GPL')
depends=('glibc')
makedepends=('git'
             'cmake'
             )
conficts=('mini18n')
provides=('mini18n')
source=('git+https://github.com/Guillaumito/yabause.git')
sha256sums=('SKIP')

pkgver() {
  cd yabause/mini18n
  _ver="$(cat CMakeLists.txt | grep -m3 "MINI18N_VERSION_" | sed 's|MINI18|MINI|g' | grep -o "[[:digit:]]*" | paste -sd'.')"
  echo "${_ver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../yabause/mini18n \
    -DCMAKE_INSTALL_PREFIX=/usr

  make
}

package() {
  make -C build DESTDIR="${pkgdir}" install
}