summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 12 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 60b40984943..f58e71f53da 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,26 @@
# Maintainer: Helder Bertoldo <helder.bertoldo@gmail.com>
+# Contributor:
-gitname=Translator
-author=RapidFingers
-auxname=translator
-pkgname=("${auxname}-git")
+_gitname=Translator
+_author=RapidFingers
+_auxname=translator
+pkgname=("${_auxname}-git")
pkgver=latest
pkgrel=1
pkgdesc="Translater app that uses Yandex API designed for Pantheon. Donate Link: http://bit.do/Translator_Donate"
arch=('i686' 'x86_64')
-url="https://github.com/${author}/${gitname}"
+url="https://github.com/${author}/${_gitname}"
license=('GPL3')
depends=('gtk3' 'vala' 'granite' 'glib2' 'json-glib' 'libgee' 'libsoup')
optdepends=()
makedepends=('cmake' 'git' 'vala')
-provides=("${auxname}")
-conflicts=("${auxname}")
+provides=("${_auxname}")
+conflicts=("${_auxname}")
source=("git+${url}.git")
md5sums=('SKIP')
pkgver() {
- cd "${gitname}"
+ cd "${_gitname}"
( 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)"
@@ -27,12 +28,12 @@ pkgver() {
}
prepare() {
- cd "${gitname}"
+ cd "${_gitname}"
install -d build
}
build() {
- cd "${gitname}/build"
+ cd "${_gitname}/build"
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
@@ -40,7 +41,7 @@ build() {
}
package() {
- cd "${gitname}/build"
+ cd "${_gitname}/build"
make DESTDIR="${pkgdir}" install
}