summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Flament2018-12-18 21:07:09 +0100
committerDamien Flament2018-12-18 21:07:09 +0100
commit12b1614ea999f3f021565994b60929755173a3ad (patch)
tree84b3e6ae1b1640bb75386dd3dd98cdea98286116
parentfdeb6e9286f75584893edb8a8641ca8e95a40600 (diff)
downloadaur-12b1614ea999f3f021565994b60929755173a3ad.tar.gz
Improved variable naming.
-rw-r--r--PKGBUILD10
1 files changed, 5 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2d8a1378c45..b89084746b2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Contributor: Ilmari Repo <ilmari at gmail dot com> (librecad-svn PKGBUILD)
# Contributor: GazJ Gary James <garyjames82 at gmail dot com> (CADuntu PKGBUILD)
-_pkgtitle='LibreCAD'
+_repository='LibreCAD'
pkgname=librecad-git
pkgver=2.2.0.rc1.r91.g8604f171
pkgrel=2
@@ -17,19 +17,19 @@ makedepends=('git')
provides=('librecad')
conflicts=('librecad')
-source=("git+https://github.com/$_pkgtitle/$_pkgtitle.git")
+source=("git+https://github.com/LibreCAD/$_repository.git")
md5sums=('SKIP')
function pkgver
{
- cd "$_pkgtitle"
+ cd "$_repository"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
function build
{
- cd "$_pkgtitle"
+ cd "$_repository"
qmake -recursive librecad.pro \
QMAKE_CPPFLAGS="$CPPFLAGS" \
@@ -42,7 +42,7 @@ function build
function package
{
- cd "$_pkgtitle"
+ cd "$_repository"
install -m 644 -Dt "$pkgdir/usr/share/pixmaps" librecad/res/main/librecad.png
install -m 644 -Dt "$pkgdir/usr/share/applications" desktop/librecad.desktop