blob: 2b26eaf4e6932a95b5fd6d6356df17eed0a67e73 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: Fabiano Furtado - fusca < fusca14 *at* gmail *dot* com >
set -u
pkgname='pev'
#pkgname+='-git'
pkgver='0.84'
pkgrel=1
pkgdesc='command line toolkit to work with and analyze PE (Portable Executables) binaries'
arch=('i686' 'x86_64')
#url='https://pev.sourceforge.io/'
url='https://github.com/mentebinaria/readpe'
license=('GPL-2.0-only')
depends=('glibc' 'openssl') # 'pcre'
#_verwatch=('https://sourceforge.net/projects/pev/rss' ".*<title>.*/${pkgname}-\([0-9\.]\+\)\.tar\.gz\].*" 'f')
_srcdir="readpe-${pkgver%.r*}"
source=(
"${_srcdir}.tar.gz::https://github.com/mentebinaria/readpe/archive/refs/tags/v${pkgver%.r*}.tar.gz"
)
md5sums=('c8beb0beeadacc576ef3c44049c9960d')
sha256sums=('2d0dc383735802db62234297ae1703ccbf4b6d2f2754e284eb90d6f0a57aa670')
if [ "${pkgname%-git}" != "${pkgname}" ]; then
makedepends+=('git')
conflicts=("${pkgname%-git}")
provides=("${pkgname%-git}=${pkgver%.r*}")
_srcdir='readpe'
source[0]='git+https://github.com/mentebinaria/readpe.git'
md5sums[0]='SKIP'
sha256sums[0]='SKIP'
pkgver() {
cd "${_srcdir}"
git describe --long --tags | sed -e 's/\([^-]*-g\)/r\1/' -e 's/-/./g' -e 's:^v::g'
}
elif [ "${pkgver%.r*}" != "${pkgver}" ]; then
pkgver() {
printf '%s' "${pkgver%.r*}"
}
fi
build() {
set -u
cd "${_srcdir}"
nice make prefix='/usr'
set +u
}
package() {
set -u
cd "${_srcdir}"
make prefix='/usr' DESTDIR="${pkgdir}" install
set +u
}
set +u
|