blob: d331e30b851778a92342d8d71d5e5ba084d30137 (
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: Robin Broda <robin at broda dot me>
_pkgname="swftools"
pkgname=("${_pkgname}-git")
pkgver=r5100.eeede5d8
pkgrel=1
pkgdesc='Utilities for editing and generating Adobe Flash (SWF) files'
arch=('x86_64')
url='https://github.com/matthiaskramm/swftools'
license=('GPL')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
depends=('libjpeg-turbo' 'giflib' 'fontconfig' 'fftw' 'pdflib-lite' 'zziplib')
makedepends=('git')
source=('git+https://github.com/matthiaskramm/swftools')
md5sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${_pkgname}"
./configure --prefix=/usr
}
build() {
cd "${_pkgname}"
# Work around https://github.com/matthiaskramm/swftools/issues/12
make || make
}
package() {
cd "${_pkgname}"
make prefix="${pkgdir}/usr" install
# Fix invalid symlinks referencing pkgdir
cd "${pkgdir}/usr/share/${_pkgname}/swfs"
rm -f default_loader.swf default_viewer.swf
ln -s tessel_loader.swf default_loader.swf
ln -s simple_viewer.swf default_viewer.swf
}
|