Skip to content

Instantly share code, notes, and snippets.

Created June 11, 2017 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ad2bf9dc65d9926bb156bc34bf929961 to your computer and use it in GitHub Desktop.
Save anonymous/ad2bf9dc65d9926bb156bc34bf929961 to your computer and use it in GitHub Desktop.
edb-debugger-git.PKGBUILD
# Maintainer: maz_1 <ohmygod19993 at gmail dot com>
_pkgname=edb-debugger
pkgname=$_pkgname-git
pkgver=0.9.21.r347.gc640663c
pkgrel=1
pkgdesc="EDB (Evan's Debugger) is a binary mode debugger with the goal of having usability on par with OllyDbg. Git version"
arch=('i686' 'x86_64')
url='http://www.codef00.com/projects'
license=('GPL2')
depends=('qt5-base' 'capstone' 'qt5-xmlpatterns')
makedepends=('boost>=1.35.0')
optdepends=('graphviz: graph visualization support')
source=("git+https://github.com/eteran/edb-debugger.git")
md5sums=('SKIP')
pkgver() {
cd "$_pkgname"
if git_version=$( git describe --long --tags 2>/dev/null ); then
IFS='-' read last_tag tag_rev commit <<< "$git_version"
printf '%s.r%s.%s' "$last_tag" "$tag_rev" "$commit"
else
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
fi
}
prepare() {
cd "$_pkgname/src"
git submodule init
git submodule update
}
build() {
cd "$_pkgname"
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="$pkgdir/usr/local/" -DCMAKE_INSTALL_MANDIR="$pkgdir/usr/local/man/man1" ..
make
}
package() {
cd "$_pkgname/build"
make install
cd ..
# icons
install -Dm644 src/images/edb48-logo.png "$pkgdir/usr/share/pixmaps/edb.png"
install -Dm644 src/images/edb48-logo.png "$pkgdir/usr/share/icons/hicolor/48x48/apps/edb.png"
# install desktop file
install -Dm644 edb.desktop "$pkgdir/usr/share/applications/edb.desktop"
}
@marehr
Copy link

marehr commented Jan 30, 2018

Dependency qt5-svg is missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment