blob: 06e707d47f66ca5ec0e17f5d522afe7d84a94338 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
_idaplugin=pyclassinformer
pkgname=ida-pro-plugin-$_idaplugin-git
pkgver=0.0.r41.6bcbbc3
pkgrel=1
pkgdesc="IDA Pro plugin: Yet Another RTTI Parsing IDA plugin"
url="https://github.com/herosi/PyClassInformer"
depends=()
makedepends=()
license=(custom)
arch=(any)
source=("$_idaplugin::git+${url}.git")
sha256sums=(SKIP)
IDADIR=${IDADIR:-/opt/ida-pro}
pkgver() {
cd "$_idaplugin"
echo "0.0.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
package() {
install -Dm644 "$_idaplugin"/ida-plugin.json -t "$pkgdir$IDADIR"/plugins/$_idaplugin/
install -Dm644 "$_idaplugin"/pyclassinformer_plugin.py -t "$pkgdir$IDADIR"/plugins/$_idaplugin/
cp -r "$_idaplugin"/pyclassinformer "$pkgdir$IDADIR"/plugins/$_idaplugin/
install -Dm644 "$_idaplugin"/LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
install -Dm644 "$_idaplugin"/README.md -t "$pkgdir"/usr/share/doc/$pkgname/
cp -r "$_idaplugin"/images "$pkgdir"/usr/share/doc/$pkgname/
}
|