summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a834d7a5e8cfe37eeb77db0fdfc65ccf0b853f3b (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
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Joseph Carta <cartakid@gmail.com>
# Contributor: acxz <akashpatel2008 at yahoo dot com>
pkgname=photofilmstrip-git
pkgver=4.0.0a2.r116.g4780e9d
pkgrel=1
pkgdesc="Create video clips from photos"
arch=('any')
url="http://www.photofilmstrip.org/en/"
license=('GPL2')
depends=('python' 'python-wxpython' 'python-pillow' 'gst-python'
         'gst-editing-services' 'python-sphinx')
optdepends=('gst-plugins-bad: additional rendering formats'
	        'gst-plugins-good: additional rendering formats'
	        'gst-plugins-ugly: additional rendering formats'
	        'gst-libav: additional rendering formats'
            'python-cairo: slideshow preview')
makedepends=('git')
_pkgname=PFS
provides=('photofilmstrip')
conflicts=('photofilmstrip')
source=("git+https://github.com/PhotoFilmStrip/PFS")
md5sums=("SKIP")

pkgver() {
  cd "$_pkgname"
  git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/$_pkgname"
	python setup.py build
}

package () {
	cd "$srcdir/$_pkgname"
	python setup.py install --root="$pkgdir" --optimize=1

	chmod 644 "$pkgdir/usr/share/applications/photofilmstrip.desktop"

	find "$pkgdir/usr/share/doc/photofilmstrip/" -type f -exec chmod 644 {} \;

	for size in 32x32 48x48 64x64 192x192
	do
		chmod 644 "$pkgdir/usr/share/icons/hicolor/$size/apps/photofilmstrip.png"
	done
}