diff options
author | Eli Schwartz | 2017-07-20 12:12:07 -0400 |
---|---|---|
committer | Eli Schwartz | 2017-07-20 12:12:07 -0400 |
commit | 948605eed31dbf8586198d67e04294db005da6c5 (patch) | |
tree | 78c6cae02583c094a9a5776a6c7820920f51b5b8 | |
parent | 19ebca2ae2b9638749e35a0a9d657063a6c770e0 (diff) | |
download | aur-948605eed31dbf8586198d67e04294db005da6c5.tar.gz |
Mass cleanup
- switch my email address
- switch git:// to git+https://
- fix download filenames for $pkgver.tar.gz downloads
- add comment pointing to my PKGBUILD repo
- misc. code style improvements
Some *-git pkgver bumps came along for the ride as well.
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 15 insertions, 13 deletions
@@ -1,6 +1,6 @@ pkgbase = kindletool-git pkgdesc = Tool for creating/extracting Kindle updates and more - pkgver = 1.6.4.r0.g4fb53f6 + pkgver = 1.6.4.r97.gb057128 pkgrel = 1 url = https://github.com/NiLuJe/KindleTool arch = i686 @@ -11,7 +11,7 @@ pkgbase = kindletool-git depends = nettle provides = kindletool conflicts = kindletool - source = git://github.com/NiLuJe/KindleTool.git + source = git+https://github.com/NiLuJe/KindleTool.git sha256sums = SKIP pkgname = kindletool-git @@ -1,31 +1,33 @@ -# Maintainer: Eli Schwartz <eschwartz93@gmail.com> +# Maintainer: Eli Schwartz <eschwartz@archlinux.org> -_gitname=KindleTool +# All my PKGBUILDs are managed at https://github.com/eli-schwartz/pkgbuilds + +_pkgname=KindleTool pkgname=kindletool-git -pkgver=1.6.4.r0.g4fb53f6 +pkgver=1.6.4.r97.gb057128 pkgrel=1 pkgdesc="Tool for creating/extracting Kindle updates and more" arch=('i686' 'x86_64') -url="https://github.com/NiLuJe/${_gitname}" +url="https://github.com/NiLuJe/${_pkgname}" license=('GPL') depends=('libarchive' 'nettle') makedepends=('git') -provides=('kindletool') -conflicts=('kindletool') -source=("git://github.com/NiLuJe/${_gitname}.git") +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("git+${url}.git") sha256sums=('SKIP') pkgver() { - cd "${srcdir}/${_gitname}" - git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | cut -c2- + cd "${srcdir}/${_pkgname}" + git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cd "${srcdir}/${_gitname}" + cd "${srcdir}/${_pkgname}" make } package() { - cd "${srcdir}/${_gitname}" + cd "${srcdir}/${_pkgname}" make DESTDIR="${pkgdir}/" install } |