summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingJingHack2017-06-01 16:31:04 +0800
committerJingJingHack2017-06-01 16:31:04 +0800
commit5deebfa9b7188cbdfd9f1856f9e405a06e43bf0c (patch)
tree1914ee10080fc18198b00c239ce48004d2fd944d
downloadaur-aimtux-git.tar.gz
First commit
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD42
-rw-r--r--aimtux-load12
-rw-r--r--aimtux-uload13
-rw-r--r--aimtux.install0
5 files changed, 94 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e79ac2072be
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = aimtux-git
+ pkgdesc = Open source internal multi-hack for Counter-Strike: Global Offensive
+ pkgver = v1.0.r703.g9e7c759
+ pkgrel = 1
+ url = https://github.com/AimTuxOfficial/AimTux
+ install = aimtux.install
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ makedepends = cmake
+ makedepends = make
+ makedepends = gcc
+ makedepends = sdl2
+ depends = gdb
+ depends = sudo
+ depends = procps-ng
+ source = aimtux::git+https://github.com/AimTuxOfficial/AimTux.git
+ source = git://github.com/AimTuxOfficial/imgui.git
+ source = aimtux-load
+ source = aimtux-uload
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = 5ac2581c29337a1a56bbef703d674ac359652d13ecd50975a63256b4d47d322c
+ sha256sums = d9eb70f4a48ca3d8ab77dcac4fcbbe3044f37f00bed6251408320da4384d45f2
+
+pkgname = aimtux-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..93c9cd4e08a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: aixxe <me@aixxe.net>
+_pkgname=aimtux
+pkgname=aimtux-git
+pkgver=v1.0.r703.g9e7c759
+pkgrel=1
+pkgdesc="Open source internal multi-hack for Counter-Strike: Global Offensive"
+arch=("x86_64")
+url="https://github.com/AimTuxOfficial/AimTux"
+license=("GPL3")
+depends=("gdb" "sudo" "procps-ng")
+makedepends=("git" "cmake" "make" "gcc" "sdl2")
+install="${_pkgname}.install"
+source=("${_pkgname}::git+${url}.git" "git://github.com/AimTuxOfficial/imgui.git" "aimtux-load" "aimtux-uload")
+sha256sums=('SKIP'
+ 'SKIP'
+ '5ac2581c29337a1a56bbef703d674ac359652d13ecd50975a63256b4d47d322c'
+ 'd9eb70f4a48ca3d8ab77dcac4fcbbe3044f37f00bed6251408320da4384d45f2')
+
+pkgver() {
+ cd "${_pkgname}"
+ git describe --long --tags | sed "s/-/.r/;s/-/./g"
+}
+
+build() {
+ cd "${_pkgname}"
+
+ git submodule init
+ git config submodule.ImGUI.url "${_pkgname}/src/ImgGUI"
+ git submodule update
+
+ cmake .
+ make
+}
+
+package() {
+ install -Dm755 aimtux-load "$pkgdir"/usr/bin/aimtux-load
+ install -Dm755 aimtux-uload "$pkgdir"/usr/bin/aimtux-uload
+
+ cd "${_pkgname}"
+ make DESTDIR="$pkgdir/"
+ install -Dm755 libAimTux.so "$pkgdir"/usr/lib/libAimTux.so
+}
diff --git a/aimtux-load b/aimtux-load
new file mode 100644
index 00000000000..c3224e5c98e
--- /dev/null
+++ b/aimtux-load
@@ -0,0 +1,12 @@
+#!/bin/sh
+# credits: aixxe @ aixxe.net
+if grep -q /usr/lib/libAimTux.so /proc/$(pidof csgo_linux64)/maps; then
+ exit
+fi
+
+sudo gdb -n -q -batch \
+ -ex "attach $(pidof csgo_linux64)" \
+ -ex "set \$dlopen = (void*(*)(char*, int)) dlopen" \
+ -ex "call \$dlopen(\"/usr/lib/libAimTux.so\", 1)" \
+ -ex "detach" \
+ -ex "quit"
diff --git a/aimtux-uload b/aimtux-uload
new file mode 100644
index 00000000000..16e44ac8397
--- /dev/null
+++ b/aimtux-uload
@@ -0,0 +1,13 @@
+#!/bin/sh
+# credits: aixxe @ aixxe.net
+if grep -q /usr/lib/libAimTux.so /proc/$(pidof csgo_linux64)/maps; then
+ sudo gdb -n -q -batch \
+ -ex "attach $(pidof csgo_linux64)" \
+ -ex "set \$dlopen = (void*(*)(char*, int)) dlopen" \
+ -ex "set \$dlclose = (int(*)(void*)) dlclose" \
+ -ex "set \$library = \$dlopen(\"/usr/lib/libAimTux.so\", 6)" \
+ -ex "call \$dlclose(\$library)" \
+ -ex "call \$dlclose(\$library)" \
+ -ex "detach" \
+ -ex "quit"
+fi
diff --git a/aimtux.install b/aimtux.install
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/aimtux.install