Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proxmark3gui-git #3147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions archlinuxcn/proxmark3gui-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Maintainer: taotieren <admin@taotieren.com>

pkgname=proxmark3gui-git
pkgver=0.2.6.r13.g2723abd
pkgrel=1
pkgdesc="A cross-platform GUI for Proxmark3 client | 为 PM3 设计的图形界面"
arch=('x86_64')
url="https://github.com/wh201906/Proxmark3GUI"
license=('LGPL-2.1')
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
depends=(qt5-serialport)
makedepends=(git
qt5-tools)
optdepends=("proxmark3: Software for the the Proxmark3, an RFID swiss-army tool")
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')

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

build() {
cd "${srcdir}/${pkgname}/src"
qmake -makefile -o Makefile "CONFIG+=release"
make
}

package() {
cd "${srcdir}/${pkgname}/src"
export INSTALL_ROOT="${pkgdir}"
make install

install -dm0755 "${pkgdir}/usr/bin"
ln -sf /opt/Proxmark3GUI/bin/Proxmark3GUI "${pkgdir}/usr/bin/${pkgname%-git}"

cd "${srcdir}/${pkgname}"
cp -rv config "${pkgdir}/opt/Proxmark3GUI"

install -Dm0644 "${srcdir}/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"

install -Dm0644 /dev/stdin "${pkgdir}/usr/share/metainfo/io.github.wh201906.proxmark3gui.metainfo.xml" << EOF
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>io.github.wh201906.proxmark3gui</id>

<name>${pkgname%-git}</name>
<summary>${pkgname%-git}</summary>

<metadata_license>MIT</metadata_license>
<project_license>LGPL-2.1</project_license>

<description>
<p>
${pkgdesc}
</p>
</description>

<launchable type="desktop-id">io.github.wh201906.proxmark3gui.desktop</launchable>
</component>
EOF

install -Dm0644 /dev/stdin "${pkgdir}/usr/share/applications/io.github.wh201906.proxmark3gui.desktop" << EOF
[Desktop Entry]
Version=1.0
Type=Application

Name=${pkgname%-git}
Comment=${pkgname%-git}
Categories=Network;Qt;

Icon=${pkgname%-git}
Exec=${pkgname%-git}
Terminal=false
EOF
}
14 changes: 14 additions & 0 deletions archlinuxcn/proxmark3gui-git/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
maintainers:
- github: taotieren

build_prefix: extra-x86_64

pre_build: vcs_update

post_build_script: |
git_pkgbuild_commit()
update_aur_repo()

update_on:
- source: github
github: wh201906/Proxmark3GUI