summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e034774e68b46c0586e20cbf28e10c164d311ca2 (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
# Maintainer: kevku <kevku@gmx.com>
pkgname=rabcdasm-git
pkgver=1.18.r0.g68f6fa2
pkgrel=1
pkgdesc="Robust ABC (ActionScript Bytecode) [Dis-]Assembler"
arch=('x86_64' 'i686')
url="https://github.com/CyberShadow/RABCDAsm"
license=('GPL3')
depends=('xz')
makedepends=('git' 'dmd' 'dtools' 'libphobos-devel')
source=("$pkgname::git+https://github.com/CyberShadow/RABCDAsm.git")
sha256sums=('SKIP')

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

build() {
  cd "$srcdir/$pkgname"
  #disable hardening-wrapper
  #https://issues.dlang.org/show_bug.cgi?id=15054
  export PATH=/usr/bin/
  dmd -run build_rabcdasm.d
}

package() {
  cd "$srcdir/$pkgname"
  install -Dm755 rabcasm $pkgdir/usr/bin/rabcasm
  install -Dm755 rabcdasm $pkgdir/usr/bin/rabcdasm
  install -Dm755 abcexport $pkgdir/usr/bin/abcexport
  install -Dm755 abcreplace $pkgdir/usr/bin/abcreplace
  install -Dm755 swfbinexport $pkgdir/usr/bin/swfbinexport
  install -Dm755 swfbinreplace $pkgdir/usr/bin/swfbinreplace
  install -Dm755 swfdecompress $pkgdir/usr/bin/swfdecompress
  install -Dm755 swf7zcompress $pkgdir/usr/bin/swf7zcompress
  install -Dm755 swflzmacompress $pkgdir/usr/bin/swflzmacompress

}

# vim:set ts=2 sw=2 et: