blob: c91a42bb002fb7d81317943cef07f4f98d16d79f (
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: Frantic1048 <archer@frantic1048.com>
pkgdesc='A simple Lua wrapper to graphicsmagick.'
pkgname='lua51-graphicsmagick-git'
pkgver=r117.309c7fb
pkgrel=1
makedepends=('git')
depends=('torch7-git>=r819')
conflicts=('lua51-graphicsmagick')
provides=('lua51-graphicsmagick')
arch=('x86_64' 'i686')
url='https://github.com/clementfarabet/graphicsmagick'
license=('unknown')
source=("${pkgname}::git+${url}")
sha512sums=('SKIP')
pkgver () {
cd "${pkgname}"
(
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 "${pkgname}"
install -d "${pkgdir}/usr/share/lua/5.1/graphicsmagick"
for f in ./*.lua
do
install -m755 "$f" "${pkgdir}/usr/share/lua/5.1/graphicsmagick/"
done
}
|