diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-02-13 17:18:01 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-02-13 17:18:01 -0200 |
commit | bd30f357b23085acd37c5833a1ef994f7a331f04 (patch) | |
tree | 1058e937b045693046ae94691016e1bd5b90b082 | |
parent | 23f719d57b7c05ba9c96e3963923eb242a67bfe8 (diff) | |
download | abslibre-bd30f357b23085acd37c5833a1ef994f7a331f04.tar.gz abslibre-bd30f357b23085acd37c5833a1ef994f7a331f04.tar.bz2 abslibre-bd30f357b23085acd37c5833a1ef994f7a331f04.zip |
mini18n-git: adding new package to [pcr] repo
-rw-r--r-- | pcr/mini18n-git/PKGBUILD | 43 |
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..c5bd359e3 --- /dev/null +++ b/pcr/mini18n-git/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Gustavo alvarez <sl1pkn07@gmail.com> + +pkgname=mini18n-git +pkgver=20130125 +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') +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 +} + |