blob: 879e73189d9f39688b4251cf48129db8540ed81c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
pkgname=('lua51-gifine-git')
pkgbase='lua-gifine-git'
pkgdesc='Quickly record and edit gifs and videos of your desktop'
pkgver=dev
_rockrel=1
pkgrel=1
arch=('x86_64')
url='https://github.com/leafo/gifine'
license=('MIT')
depends=('ffmpeg' 'graphicsmagick' 'gifsicle' 'slop' 'lua51-lgi')
makedepends=('luarocks')
provides=('gifine')
source=("git+$url")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}"/gifine
(
set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
package() {
cd "${srcdir}"/gifine
luarocks --lua-version=5.1 --tree="$pkgdir/usr/" make --deps-mode=none --no-manifest "gifine-$pkgver-$_rockrel.rockspec"
sed -i "s@$pkgdir@@" "$pkgdir/usr/bin/gifine"
install -Dm 644 "hi.png" "$pkgdir/usr/share/pixmaps/gifine.png"
install -Dm 644 "../../gifine.desktop" "$pkgdir/usr/share/applications/gifine.desktop"
}
# vim:set ts=2 sw=2 et:
|