milis/talimatname/genel/b/binwalk/talimat

32 lines
839 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Gömülü (embedded) dosyalarda binary görüntüyü aramak için kullanılan bir araç.
# URL: http://binwalk.org
# Paketçi: yakar
# Gerekler: python-magic python-opengl python-pip python python-setuptools
# Grup: sistem
isim=binwalk
surum=2.1.1
devir=2
kaynak=(https://github.com/ReFirmLabs/$isim/archive/v${surum}.tar.gz::$isim-$surum.tar.gz)
derle() {
cd "$SRC/$isim-$surum"
python2 setup.py build
mkdir -p "$PKG/opt"
python2 setup.py install --root="$PKG" --optimize=1
install -Dm644 -t "$PKG/usr/share/doc/$isim" README.md INSTALL.md API.md
# desktop
mkdir -p "$PKG/usr/share/applications/"
cat > $PKG/usr/share/applications/$isim.desktop << BASLA
[Desktop Entry]
Name=Binwalk
Exec=sh -c "binwalk;${SHELL:-bash}"
Terminal=true
Icon=binwalk
Type=Application
Categories=Network;X-Komutan;
Version=1.0
BASLA
}