summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD35
-rwxr-xr-xde4dot-x64.sh3
-rwxr-xr-xde4dot.sh3
4 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..13be7f8c8a8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = de4dot-git
+ pkgdesc = .NET deobfuscator and unpacker.
+ pkgver = 1736.74408ae
+ pkgrel = 1
+ url = https://github.com/0xd4d/de4dot
+ arch = any
+ license = GPL-3.0
+ makedepends = git
+ makedepends = mono
+ depends = mono
+ source = git://github.com/0xd4d/de4dot.git
+ source = de4dot.sh
+ source = de4dot-x64.sh
+ sha256sums = SKIP
+ sha256sums = 835243121454a7a525cb0a1a90c6fef84003cf0a52cb73445440b2766b7c2114
+ sha256sums = 2ce5e81ecf633c3fd4b310b19cfa8250001110fbb23cfc1d6062822abb25b5d7
+
+pkgname = de4dot-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6e92e97d198
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: saneki <s@neki.me>
+pkgname=de4dot-git
+_pkgname=de4dot
+pkgver=1736.74408ae
+pkgrel=1
+pkgdesc=".NET deobfuscator and unpacker."
+arch=("any")
+url="https://github.com/0xd4d/de4dot"
+license=("GPL-3.0")
+makedepends=(git mono)
+depends=(mono)
+source=("git://github.com/0xd4d/${_pkgname}.git" "de4dot.sh" "de4dot-x64.sh")
+sha256sums=("SKIP" "835243121454a7a525cb0a1a90c6fef84003cf0a52cb73445440b2766b7c2114" "2ce5e81ecf633c3fd4b310b19cfa8250001110fbb23cfc1d6062822abb25b5d7")
+
+pkgver() {
+ cd "${_pkgname}"
+ echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${_pkgname}"
+ git submodule update --init --recursive
+ xbuild /p:PostBuildEvent=
+}
+
+package() {
+ mkdir -p "${pkgdir}/usr/share/${_pkgname}"
+ cp -R ${_pkgname}/Debug/* "${pkgdir}/usr/share/${_pkgname}"
+ install -Dm0755 "${srcdir}/de4dot.sh" "${pkgdir}/usr/share/${_pkgname}/de4dot.sh"
+ install -Dm0755 "${srcdir}/de4dot-x64.sh" "${pkgdir}/usr/share/${_pkgname}/de4dot-x64.sh"
+ # For now, symlink both x32 and x64 scripts
+ mkdir -p "${pkgdir}/usr/bin"
+ ln -s "/usr/share/${_pkgname}/de4dot.sh" "${pkgdir}/usr/bin/de4dot"
+ ln -s "/usr/share/${_pkgname}/de4dot-x64.sh" "${pkgdir}/usr/bin/de4dot-x64"
+}
diff --git a/de4dot-x64.sh b/de4dot-x64.sh
new file mode 100755
index 00000000000..d5135fe01ea
--- /dev/null
+++ b/de4dot-x64.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+BASEDIR="$( cd "$( dirname "$( readlink -f ${BASH_SOURCE[0]} )" )" && pwd )"
+mono "$BASEDIR/de4dot-x64.exe" "$@"
diff --git a/de4dot.sh b/de4dot.sh
new file mode 100755
index 00000000000..d7eb6da7127
--- /dev/null
+++ b/de4dot.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+BASEDIR="$( cd "$( dirname "$( readlink -f ${BASH_SOURCE[0]} )" )" && pwd )"
+mono "$BASEDIR/de4dot.exe" "$@"