summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD23
2 files changed, 14 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c1b1c77aeff..9d79da085c3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@ pkgbase = translator-git
pkgdesc = Translater app that uses Yandex API designed for Pantheon. Donate Link: http://bit.do/Translator_Donate
pkgver = latest
pkgrel = 1
- url = https://github.com/RapidFingers/Translator
+ url = https://github.com//Translator
arch = i686
arch = x86_64
license = GPL3
@@ -18,7 +18,7 @@ pkgbase = translator-git
depends = libsoup
provides = translator
conflicts = translator
- source = git+https://github.com/RapidFingers/Translator.git
+ source = git+https://github.com//Translator.git
md5sums = SKIP
pkgname = translator-git
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
}