summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Pagani2016-12-22 16:45:56 +0100
committerBruno Pagani2016-12-22 16:45:56 +0100
commit8a52496e512ab782ca160f38ccef23ee9aee26fa (patch)
tree5008e36a9926d82723ee0cca880cae3ab4993eea
parentde0619a9ba7bb1b6463af8d01290b486e57d21ff (diff)
downloadaur-8a52496e512ab782ca160f38ccef23ee9aee26fa.tar.gz
Fix wrong pkgbase use, improve PKGBUILD
Make use of https. Clean some bits.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD22
2 files changed, 12 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 849a865dc5c..edcae9364d4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,4 +1,4 @@
-pkgbase = evince
+pkgbase = evince-light
pkgdesc = GNOME document viewer, built with minimal dependencies
pkgver = 3.22.1
pkgrel = 1
@@ -16,7 +16,7 @@ pkgbase = evince
depends = poppler-glib
provides = evince
conflicts = evince
- source = http://ftp.gnome.org/pub/GNOME/sources/evince/3.22/evince-3.22.1.tar.xz
+ source = https://ftp.gnome.org/pub/GNOME/sources/evince/3.22/evince-3.22.1.tar.xz
sha256sums = f3d439db3b5a5745d26175d615a71dffa1535235b1e3aa0b85d397ea33ab231c
pkgname = evince-light
diff --git a/PKGBUILD b/PKGBUILD
index 424faf079df..345aaef0d76 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <bruno.n.pagani@gmail.com>
-pkgbase=evince
-pkgname=evince-light
+_pkgname=evince
+pkgname=${_pkgname}-light
pkgver=3.22.1
pkgrel=1
pkgdesc="GNOME document viewer, built with minimal dependencies"
@@ -20,14 +20,13 @@ depends=('gnome-icon-theme'
# 'libgxps' for XPS
# 'gvfs' for bookmark and annotations
makedepends=('itstool' 'intltool' 'python')
-provides=("${pkgbase}")
-conflicts=("${pkgbase}")
-source=("http://ftp.gnome.org/pub/GNOME/sources/${pkgbase}/${pkgver%.*}/${pkgbase}-${pkgver}.tar.xz")
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+source=("https://ftp.gnome.org/pub/GNOME/sources/${_pkgname}/${pkgver%.*}/${_pkgname}-${pkgver}.tar.xz")
sha256sums=('f3d439db3b5a5745d26175d615a71dffa1535235b1e3aa0b85d397ea33ab231c')
-build()
-{
- cd ${srcdir}/${pkgbase}-${pkgver}
+build() {
+ cd ${_pkgname}-${pkgver}
# --enable-ps if building with libspectre
# --enable-djvu if building with djvulibre
@@ -38,7 +37,7 @@ build()
./configure \
--sysconfdir=/etc \
--prefix=/usr \
- --libexecdir=/usr/lib/${pkgbase} \
+ --libexecdir=/usr/lib/${_pkgname} \
--localstatedir=/var \
--with-platform=gnome \
--disable-debug \
@@ -66,9 +65,8 @@ build()
make
}
-package_evince-light()
-{
- cd "${srcdir}/${pkgbase}-${pkgver}"
+package() {
+ cd ${_pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
}