[arch-commits] Commit in ebook-tools/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Wed Nov 1 20:07:11 UTC 2017


    Date: Wednesday, November 1, 2017 @ 20:07:10
  Author: arojas
Revision: 308828

https

Modified:
  ebook-tools/trunk/PKGBUILD

----------+
 PKGBUILD |   35 ++++++++++++++++++-----------------
 1 file changed, 18 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-01 19:21:16 UTC (rev 308827)
+++ PKGBUILD	2017-11-01 20:07:10 UTC (rev 308828)
@@ -1,24 +1,26 @@
 # $Id$
-# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
 
 pkgname=ebook-tools
 pkgver=0.2.2
 pkgrel=4
 pkgdesc="Tools for accessing and converting various ebook file formats"
-arch=('i686' 'x86_64')
-url="http://sourceforge.net/projects/ebook-tools/"
-license=('custom')
-depends=('libzip' 'libxml2' 'convertlit')
-makedepends=('pkgconfig' 'cmake')
-source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
-md5sums=('67bce67ceb72dcc3578d6a81ef92b29b')
+arch=(i686 x86_64)
+url="https://sourceforge.net/projects/ebook-tools/"
+license=(custom)
+depends=(libzip libxml2 convertlit)
+makedepends=(cmake)
+source=("https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('cbc35996e911144fa62925366ad6a6212d6af2588f1e39075954973bbee627ae')
 
+prepare() {
+  mkdir -p build
+}
+
 build() {
-  cd "${srcdir}"
-
-  mkdir build
   cd build
-  cmake ../${pkgname}-${pkgver} \
+  cmake ../$pkgname-$pkgver \
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_INSTALL_PREFIX=/usr
   make
@@ -25,10 +27,9 @@
 }
 
 package() {
-  cd "${srcdir}/build"
+  cd build
+  make DESTDIR="$pkgdir" install
 
-  make DESTDIR="${pkgdir}" install
-
-  install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE \
-    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE \
+    -t "$pkgdir"/usr/share/licenses/$pkgname/
 }


More information about the arch-commits mailing list