blob: ad2c793f3304af941332b0c5f1b21be4b97f80ac (
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='djstub-git'
pkgver=0.0.r131.c96e090
pkgrel=1
pkgdesc='Stub for dj64'
arch=('x86_64')
url='https://github.com/stsp/djstub'
license=('GPL-3.0-or-later')
depends=('glibc' 'bash')
makedepends=('smallerc' 'lfanew' 'git' 'nasm')
provides=("${pkgname%-git}=${pkgver%.r*}")
conflicts=("${pkgname%-git}")
_srcdir='djstub'
source=(
"git+${url}.git"
)
md5sums=('SKIP')
sha256sums=('SKIP')
pkgver() {
set -u
cd "${_srcdir}"
printf "0.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
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'
local _seds=(
-e '/^PREFIX \?=/ s:/usr/local:/usr:g'
-e '/^prefix \?=/ s:/usr/local:/usr:g'
)
sed -E "${_seds[@]}" -i 'Makefile'
set +u
}
build() {
set -u
cd "${_srcdir}"
make
set +u
}
package() {
set -u
cd "${_srcdir}"
make -j1 DESTDIR="${pkgdir}" install
set +u
}
set +u
|