summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rawlinson2021-01-18 20:01:00 +1300
committerGeorge Rawlinson2021-01-18 20:01:20 +1300
commit2e1159bbade0cb3af2a3a43307aa7bbc0b4b249e (patch)
tree90637e376df853b185ab866af2e8f22ef330750e
parent4d805f208c2f02e1631fcfbe01a5a4a1dbfd3f6b (diff)
downloadaur-2e1159bbade0cb3af2a3a43307aa7bbc0b4b249e.tar.gz
upgpkg: imhex 1.6.1-2
Add imhex.desktop file as requested.
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD29
-rw-r--r--imhex.desktop11
3 files changed, 37 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6a01b2dabcd..397f60c8c25 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = imhex
pkgdesc = A Hex Editor for Reverse Engineers, Programmers and people that value their eye sight when working at 3 AM
pkgver = 1.6.1
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/WerWolv/ImHex
arch = x86_64
license = GPL2
@@ -16,8 +16,11 @@ pkgbase = imhex
depends = file
depends = openssl
depends = libiconv
+ depends = hicolor-icon-theme
source = imhex-1.6.1.tar.gz::https://github.com/WerWolv/ImHex/archive/v1.6.1.tar.gz
+ source = imhex.desktop
b2sums = 6dcf7461fa15a396c5351942347e62e8a4bfdac47591761006001e8bd8d149d9208e01795eebc27fbdc2b5023021f783e7c6142a4da1b0fc484531b181d6b00f
+ b2sums = 7b2d029de385fdc2536f57a4364add9752b9a5dc31df501e07bff1fd69fdd1de2afa19a5ac5a4c87fbf21c5d87cc96d3fe30d58825c050f5a7d25f6d85d08efc
pkgname = imhex
diff --git a/PKGBUILD b/PKGBUILD
index 8398ee2a8eb..513d910b589 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,15 +4,17 @@
_pkgname=ImHex
pkgname=${_pkgname,,}
pkgver=1.6.1
-pkgrel=1
+pkgrel=2
pkgdesc='A Hex Editor for Reverse Engineers, Programmers and people that value their eye sight when working at 3 AM'
url='https://github.com/WerWolv/ImHex'
license=('GPL2')
arch=('x86_64')
-depends=('glfw' 'glm' 'capstone' 'llvm' 'nlohmann-json' 'python' 'freetype2' 'file' 'openssl' 'libiconv')
+depends=('glfw' 'glm' 'capstone' 'llvm' 'nlohmann-json' 'python' 'freetype2' 'file' 'openssl' 'libiconv' 'hicolor-icon-theme')
makedepends=('cmake')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-b2sums=('6dcf7461fa15a396c5351942347e62e8a4bfdac47591761006001e8bd8d149d9208e01795eebc27fbdc2b5023021f783e7c6142a4da1b0fc484531b181d6b00f')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
+ "$pkgname.desktop")
+b2sums=('6dcf7461fa15a396c5351942347e62e8a4bfdac47591761006001e8bd8d149d9208e01795eebc27fbdc2b5023021f783e7c6142a4da1b0fc484531b181d6b00f'
+ '7b2d029de385fdc2536f57a4364add9752b9a5dc31df501e07bff1fd69fdd1de2afa19a5ac5a4c87fbf21c5d87cc96d3fe30d58825c050f5a7d25f6d85d08efc')
build() {
cmake -B build -S "$_pkgname-$pkgver" \
@@ -24,7 +26,20 @@ build() {
}
package() {
- install -Dm0755 "build/$pkgname" -t "$pkgdir/usr/bin"
- install -Dm0644 "$_pkgname-$pkgver/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
- install -Dm0644 "$_pkgname-$pkgver/README.md" -t "$pkgdir/usr/share/doc/$pkgname"
+ # binary
+ install -Dm0755 -t "$pkgdir/usr/bin" "build/$pkgname"
+
+ # license
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname" \
+ "$_pkgname-$pkgver/LICENSE"
+
+ # documentation
+ install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname" \
+ "$_pkgname-$pkgver/README.md"
+
+ # desktop file(s)
+ install -Dm0644 -t "$pkgdir/usr/share/applications" \
+ "$pkgname.desktop"
+ install -Dm0644 "$_pkgname-$pkgver/res/icon.png" \
+ "$pkgdir/usr/share/icons/hicolor/72x72/apps/$pkgname.png"
}
diff --git a/imhex.desktop b/imhex.desktop
new file mode 100644
index 00000000000..46cbb8d25da
--- /dev/null
+++ b/imhex.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=ImHex
+GenericName=Hex Editor
+Comment=A Hex Editor for Reverse Engineers, Programmers and people that value their eye sight when working at 3 AM
+Icon=imhex
+Exec=/usr/bin/imhex
+Terminal=false
+Categories=Development;
+Encoding=UTF-8