summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authortydell2015-06-12 15:12:22 +0200
committertydell2015-06-12 15:12:22 +0200
commitbd6da0fcd3c6ce5dfb8904eeff1d8e47dbaa0ee3 (patch)
treec2436bf05f332d9835f65c8e0c02a00cdf7f8027 /PKGBUILD
downloadaur-translator-bzr.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-xPKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..abea22380cf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Marcin Tydelski <marcin.tydelski@gmail.com>
+# Contributor: Grabli66 <https://launchpad.net/~grabli66-r>
+
+pkgname=translator-bzr
+pkgver=r4
+pkgrel=1
+pkgdesc='Translator developed for Elementary OS desktop.'
+arch=('i686' 'x86_64')
+url='https://code.launchpad.net/~grabli66-r/+junk/translator'
+license=('GPL3')
+depends=('gtk3' 'libsoup' 'glib2' 'libgee' 'json-glib' 'glib-networking')
+optdepends=()
+makedepends=('vala' 'bzr' 'cmake')
+provides=("${pkgname%}")
+conflicts=("${pkgname%}")
+install="${pkgname%-*}.install"
+source=('bzr+lp:~grabli66-r/+junk/translator')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd ${pkgname%-*}
+ printf "r%s" "$(bzr revno)"
+}
+
+build() {
+ cd ${pkgname%-*}
+
+ if [[ -d build ]]; then
+ rm -rf build
+ fi
+ mkdir build && cd build
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd ${pkgname%-*}/build
+ make DESTDIR="${pkgdir}" install
+}
+
+# vim: ts=2 sw=2 et: