summaryrefslogtreecommitdiff
path: root/pcr/mini18n-git/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-02-14 00:04:52 -0800
committerroot <root@rshg054.dnsready.net>2013-02-14 00:04:52 -0800
commit0bf564cf7a3d99207457267c75f92ceb67197537 (patch)
tree92c12891df8b8cc45a54b34413ecba167599bed5 /pcr/mini18n-git/PKGBUILD
parent0671250710c3e7312a4693ac45ebbaacf471d1dc (diff)
Thu Feb 14 00:04:51 PST 2013
Diffstat (limited to 'pcr/mini18n-git/PKGBUILD')
-rw-r--r--pcr/mini18n-git/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/pcr/mini18n-git/PKGBUILD b/pcr/mini18n-git/PKGBUILD
new file mode 100644
index 000000000..c55db7b7d
--- /dev/null
+++ b/pcr/mini18n-git/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Gustavo alvarez <sl1pkn07@gmail.com>
+
+pkgname=mini18n-git
+pkgver=20130213
+pkgrel=1
+pkgdesc="A a small and non-intrusive translation library designed for small memory and non-GNU systems. (GIT version)"
+arch=('x86_64' 'i686')
+url="http://wiki.yabause.org/index.php5?title=Mini18n"
+license=('GPL')
+makedepends=('git' 'cmake')
+conficts=('mini18n')
+provides=('mini18n')
+
+_gitroot="git://github.com/Guillaumito/yabause.git"
+_gitname="mini18n"
+
+build() {
+ cd "$srcdir"
+ msg "Connecting to GIT server...."
+
+ if [ -d "${_gitname}" ]; then
+ cd "${_gitname}" && git pull origin
+ msg "The local files are updated."
+ else
+ git clone --depth=1 "${_gitroot}" "${_gitname}"
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting build..."
+
+ rm -rf "${srcdir}/${_gitname}-build"
+ cp -R "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
+ cd "${srcdir}/${_gitname}-build/${_gitname}"
+
+ cmake . -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${_gitname}-build/${_gitname}"
+ make DESTDIR="${pkgdir}/" install
+}
+