diff options
author | btd1337 | 2018-08-25 02:44:06 -0300 |
---|---|---|
committer | btd1337 | 2018-08-25 02:44:06 -0300 |
commit | 0529c1a4e0fbd5f2a155dc2f71b243b419f9bf76 (patch) | |
tree | 135adf02e23dfcc73613c82903e763c3a4dd542b | |
parent | 3f0b1bed26e6fdd54fda1ecdc570d7eda3213b5e (diff) | |
download | aur-0529c1a4e0fbd5f2a155dc2f71b243b419f9bf76.tar.gz |
update variables
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 14 insertions, 13 deletions
@@ -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 @@ -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 } |