summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Weiss2019-03-02 18:33:15 +0100
committerLuca Weiss2019-03-02 18:33:15 +0100
commit49e63fb3c8bd04873312dec6e9c8a175698a1f76 (patch)
treea58a172bf5064c51a944183a389710f7a35d9288
parentdeba003a36c6c355c2654d2fa0dd9a2fb796273e (diff)
downloadaur-49e63fb3c8bd04873312dec6e9c8a175698a1f76.tar.gz
upgpkg: epeg-git 0.9.2.r2.g248ae9f-1
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD43
2 files changed, 23 insertions, 26 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7e0a5384bf7..35582b3b10a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,17 @@
pkgbase = epeg-git
pkgdesc = An IMMENSELY FAST JPEG thumbnailer library API.
- pkgver = r38.248ae9f
+ pkgver = 0.9.2.r2.g248ae9f
pkgrel = 1
url = https://github.com/mattes/epeg
- arch = any
+ arch = x86_64
license = MIT
makedepends = git
depends = libjpeg
depends = libexif
provides = epeg
conflicts = epeg
+ source = epeg::git+https://github.com/mattes/epeg.git
+ sha512sums = SKIP
pkgname = epeg-git
diff --git a/PKGBUILD b/PKGBUILD
index 07f56fdbb21..445c1ed756e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,40 +1,35 @@
-# Maintainer: Gustav Larson <gustav dot larson at gmail dot com>
+# Maintainer: Luca Weiss <luca (at) z3ntu (dot) xyz>
+
pkgname=epeg-git
-pkgver=r38.248ae9f
+_pkgname=epeg
+pkgver=0.9.2.r2.g248ae9f
pkgrel=1
pkgdesc="An IMMENSELY FAST JPEG thumbnailer library API."
-arch=('any')
+arch=('x86_64')
url="https://github.com/mattes/epeg"
license=('MIT')
-groups=()
depends=('libjpeg' 'libexif')
makedepends=('git')
-provides=("${pkgname%-git}")
-conflicts=("${pkgname%-git}")
-replaces=()
-backup=()
-options=()
-install=
-noextract=()
-_gitrepo="$url.git"
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+source=("$_pkgname::git+https://github.com/mattes/epeg.git")
+sha512sums=('SKIP')
pkgver() {
- cd "$srcdir/${pkgname%-git}"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
-}
-
-prepare() {
- git clone --single $_gitrepo "$srcdir/${pkgname%-git}"
+ cd "$_pkgname"
+ # cutting off 'v' prefix that presents in the git tag
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
- cd "$srcdir/${pkgname%-git}"
- ./autogen.sh
- ./configure --prefix=/usr
- make
+ cd "$_pkgname"
+ NOCONFIGURE=1 ./autogen.sh
+ ./configure --prefix=/usr
+ make
}
package() {
- cd "$srcdir/${pkgname%-git}"
- make DESTDIR="$pkgdir/" install
+ cd "$_pkgname"
+ make DESTDIR="$pkgdir/" install
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}