build: Cleanup PKGBUILD (#732)
* [From Morten Linderud] update PKGBUILD * quote strings in PKGBUILD * do not use ls to * do not hardcode version
This commit is contained in:
parent
7a4040f6ec
commit
a22725bb67
33
dist/Arch/PKGBUILD
vendored
33
dist/Arch/PKGBUILD
vendored
@ -1,40 +1,29 @@
|
|||||||
# Maintainer: iTrooz_ <itrooz at protonmail dot com>
|
# Maintainer: iTrooz_ <itrooz at protonmail dot com>
|
||||||
|
# Contributor: Morten Linderud <foxboron@archlinux.org>
|
||||||
|
|
||||||
pkgname=imhex-bin
|
pkgname=imhex-bin
|
||||||
pkgver=%version%
|
pkgver=%version%
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM. "
|
pkgdesc="A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM. "
|
||||||
arch=("x86_64")
|
arch=("x86_64")
|
||||||
url="https://github.com/WerWolv/ImHex"
|
url="https://github.com/WerWolv/ImHex"
|
||||||
repo=$url
|
license=('GPL2')
|
||||||
license=('GPL 2.0')
|
|
||||||
groups=()
|
|
||||||
depends=(glfw mbedtls python freetype2 libglvnd dbus xdg-desktop-portal curl fmt yara nlohmann-json)
|
depends=(glfw mbedtls python freetype2 libglvnd dbus xdg-desktop-portal curl fmt yara nlohmann-json)
|
||||||
makedepends=(git)
|
makedepends=(git)
|
||||||
checkdepends=()
|
|
||||||
optdepends=()
|
|
||||||
provides=(imhex)
|
provides=(imhex)
|
||||||
conflicts=(imhex)
|
conflicts=(imhex)
|
||||||
replaces=()
|
source=("$url/releases/download/v$pkgver/imhex-$pkgver-ArchLinux.pkg.tar.zst")
|
||||||
backup=()
|
|
||||||
options=()
|
|
||||||
source=($repo"/releases/download/v$pkgver/imhex-$pkgver-ArchLinux.pkg.tar.zst")
|
|
||||||
noextract=()
|
|
||||||
md5sums=(SKIP)
|
md5sums=(SKIP)
|
||||||
validpgpkeys=()
|
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
tar -xf imhex-$pkgver-ArchLinux.pkg.tar.zst
|
install -Dm755 "$srcdir/usr/bin/imhex" "$pkgdir/usr/bin/imhex"
|
||||||
|
install -Dm644 "$srcdir/usr/lib/libimhex.so.$pkgver" "$pkgdir/usr/lib/libimhex.so.$pkgver"
|
||||||
|
|
||||||
install -DT $srcdir/usr/bin/imhex $pkgdir/usr/bin/imhex
|
for plugin in "$srcdir/usr/lib/imhex/plugins/"*.hexplug; do
|
||||||
install -DT $srcdir/usr/lib/libimhex.so.$pkgver $pkgdir/usr/lib/libimhex.so.$pkgver
|
install -Dm644 "$plugin" "$pkgdir/usr/lib/imhex/plugins/${plugin##*/}"
|
||||||
|
|
||||||
for plugin in $srcdir/usr/lib/imhex/plugins/*.hexplug;
|
|
||||||
do
|
|
||||||
install -DT $plugin $pkgdir/usr/lib/imhex/plugins/`basename $plugin`
|
|
||||||
done
|
done
|
||||||
|
|
||||||
mkdir -p $pkgdir/usr/share/imhex
|
install -d "$pkgdir/usr/share/imhex"
|
||||||
cp -r $srcdir/usr/share/imhex/{constants,encodings,includes,magic,patterns} $pkgdir/usr/share/imhex
|
cp -r "$srcdir/usr/share/imhex/"{constants,encodings,includes,magic,patterns} "$pkgdir/usr/share/imhex"
|
||||||
cp -r $srcdir/usr/share/{applications,licenses} $pkgdir/usr/share
|
cp -r "$srcdir/usr/share/"{applications,licenses} "$pkgdir/usr/share"
|
||||||
install -d $pkgdir/usr/share
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user