summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0584f44142d46d37563eda69c5c4ccec991d30a8 (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
# Maintainer: Vladimir Panteleev <arch-pkg at thecybershadow.net>
# Contributor: anonymous <https://gist.github.com/anonymous/2924244>
_pkgname=swfmill
pkgname=$_pkgname-git
pkgver=r543.53d7690
pkgrel=1
pkgdesc="xml2swf and swf2xml processor with import functionalities"
arch=('i686' 'x86_64')
url="http://swfmill.org"
license=('GPL')
depends=('libxslt' 'freetype2' 'libpng')
provides=('swfmill')
conflicts=('swfmill')
source=("git+https://github.com/djcsdy/swfmill")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$srcdir/$_pkgname"
}

build() {
  cd "$srcdir/$_pkgname"

  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$_pkgname"

  make DESTDIR="$pkgdir/" install
}