blob: 926e0dd96ddcdd8fd8fd527f8f9f4c4e55f45e3d (
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
62
63
64
65
66
|
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
set -u
pkgname='lfanew-git'
pkgver=0.0.20230825.r12.gc1980df
pkgrel=2
pkgdesc='manipulate fat binary programs wrapped inside MS-DOS MZ files'
arch=('x86_64')
#url='https://github.com/stsp/lfanew'
url='https://codeberg.org/tkchia/lfanew'
license=('MPL-2.0')
depends=('glibc')
makedepends=('git')
#makedepends+=('p7zip' 'dos2unix' 'llvm' 'mingw-w64-gcc') # lfanew/debian/control
provides=("${pkgname%-git}=${pkgver%.r*}")
conflicts=("${pkgname%-git}")
_srcdir='lfanew'
source=(
"git+${url}.git"
)
md5sums=('SKIP')
sha256sums=('SKIP')
pkgver() {
set -u
cd "${_srcdir}"
printf '0.0.'
git describe --long --tags --abbrev=7 | sed -e 's/\([^-]*-g\)/r\1/' -e 's/-/./g'
set +u
}
prepare() {
set -u
cd "${_srcdir}"
local _pt
for _pt in "${source[@]%%::*}"; do
_pt="${_pt##*/}"
if [[ "${_pt}" = *.patch ]]; then
set +u; msg2 "Patch ${_pt}"; set -u
patch -Nup1 -i "${srcdir}/${_pt}"
fi
done
#cd ..; cp -pr "${_srcdir}" 'a'; ln -s "${_srcdir}" 'b'; cd "${_srcdir}"; false
#diff -pNaru5 'a' 'b' > '0000-new.patch'
sed -e 's:mingw:min_disabled_gw:g' -i 'configure'
set +u
}
build() {
set -u
cd "${_srcdir}"
./configure --prefix='/usr'
nice make # -j1
set +u
}
package() {
set -u
cd "${_srcdir}"
make -j1 DESTDIR="${pkgdir}" install
set +u
}
set +u
|