summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 61221cdeeb13b1787527fcc21e805090eae1255d (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
55
56
57
58
59
60
61
# Maintainer: Keshav Amburay <(the ddoott ridikulus ddoott rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>

_pkgname="pesign"
pkgname="${_pkgname}-git"

pkgver=0.110.12.g8854461
pkgrel=1
pkgdesc="Tools for manipulating signed PE-COFF binaries - GIT Version"
url="https://github.com/rhinstaller/pesign"
arch=('x86_64')
license=('GPL2')
makedepends=('git')
depends=('libutil-linux' 'efivar' 'popt' 'nss')

conflicts=("${_pkgname}")
provides=("${_pkgname}=${pkgver}")

options=('!strip' '!emptydirs' 'docs')

source=("pesign::git+https://github.com/rhinstaller/pesign.git#branch=master")
sha1sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_pkgname}/"
	echo "$(git describe --tags)" | sed -e 's|-|.|g'
}

prepare(){
	
	cd "${srcdir}/${_pkgname}/"
	
	git clean -x -d -f
	echo
	
}

build() {
	
	cd "${srcdir}/${_pkgname}/"
	
	unset CFLAGS
	unset CPPFLAGS
	unset CXXFLAGS
	unset LDFLAGS
	unset MAKEFLAGS
	
	make PREFIX="/usr/" LIBDIR="/usr/lib/"
	echo
	
}

package() {
	
	cd "${srcdir}/${_pkgname}"
	
	make INSTALLROOT="${pkgdir}/" PREFIX="/usr/" LIBDIR="/usr/lib/" install
	
	chmod 0644 "${pkgdir}/usr/lib/libdpe.a"
	rm -rf "${pkgdir}/etc/rpm/"
	
}