diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 25 insertions, 24 deletions
@@ -1,25 +1,23 @@ -# Generated by mksrcinfo v8 -# Sat Jan 7 13:16:13 UTC 2017 pkgbase = i3lock-cac03-git pkgdesc = An improved screenlocker based upon XCB and PAM (cac03 fork) with clock, layout indicator, CAPS indicator - pkgver = 2bfcb7 + pkgver = r219.98bbe80 pkgrel = 1 + epoch = 1 url = https://github.com/cac03/i3lock - arch = i686 arch = x86_64 groups = i3 license = MIT + makedepends = git depends = xcb-util-image depends = libev depends = cairo depends = libxkbcommon-x11 + depends = pam + depends = libxkbfile provides = i3lock conflicts = i3lock - replaces = i3lock - options = docs backup = etc/pam.d/i3lock - source = git://github.com/cac03/i3lock.git + source = git+https://github.com/cac03/i3lock.git md5sums = SKIP pkgname = i3lock-cac03-git - @@ -1,39 +1,42 @@ -# Maintainer: Pavel Ordenko <zoltor@gmail.com> +# Contributor: Pavel Ordenko <zoltor@gmail.com> # This PKGBUILD based on https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=i3lock-lixxia-git pkgname=i3lock-cac03-git -pkgver=2bfcb7 +pkgver=r219.98bbe80 pkgrel=1 +epoch=1 pkgdesc="An improved screenlocker based upon XCB and PAM (cac03 fork) with clock, layout indicator, CAPS indicator" -arch=('i686' 'x86_64') +arch=('x86_64') url="https://github.com/cac03/i3lock" license=('MIT') groups=("i3") -depends=('xcb-util-image' 'libev' 'cairo' 'libxkbcommon-x11') -options=('docs') +depends=('xcb-util-image' 'libev' 'cairo' 'libxkbcommon-x11' 'pam' 'libxkbfile') +makedepends=('git') provides=('i3lock') conflicts=('i3lock') -replaces=('i3lock') backup=("etc/pam.d/i3lock") -source=("git://github.com/cac03/i3lock.git") +source=("git+${url}.git") md5sums=('SKIP') pkgver() { - cd "${srcdir}/i3lock" - git describe --always | cut -c2- | tr "-" "." + cd "i3lock" + printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short=7 HEAD) +} + +prepare() { + # fix Makefile since there are no tags + sed -i '/^VERSION/d' i3lock/Makefile } build() { - cd "${srcdir}/i3lock" + cd "i3lock" make - gzip i3lock.1 } package() { - cd "${srcdir}/i3lock" + cd "i3lock" make DESTDIR="${pkgdir}" install - install -Dm644 i3lock.1.gz ${pkgdir}/usr/share/man/man1/i3lock.1.gz - install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE - make clean -}
\ No newline at end of file + install -Dm644 i3lock.1 "${pkgdir}/usr/share/man/man1/i3lock.1" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |