summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 336b535b8a8b827a4399358869db02673293d178 (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
# $Id$
# Maintainer: Giovanni 'ItachiSan' Santini <giovannisantini93@yahoo.it>
# Previous maintainer: Allan McRae <allan@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>

pkgname=make-3.81
pkgver=3.81
pkgrel=3
pkgdesc="GNU make utility to maintain groups of programs (3.81 version)"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/make"
license=('GPL')
depends=('glibc')
checkdepends=('procps-ng')
source=(
    https://ftpmirror.gnu.org/make/${pkgname}.tar.gz{,.sig}
    # Fixing builds on newer toolchains, thanks to BangL
    https://raw.githubusercontent.com/InuSasha/LibreELEC.tv/master/packages/devel/make/patches/make-glibc_alloc_fix.patch
    # Fix unsafe Perl imports, see: https://bugs.archlinux.org/task/55127
    perl-use_safe_inclusion.patch::https://git.savannah.gnu.org/cgit/make.git/patch/?id=d9d4e06084a4c7da480bd49a3487aadf6ba77b54
)
validpgpkeys=('3D2554F0A15338AB9AF1BB9D96B047156338B6D4') # Paul Smith
sha256sums=('16b77de9f013bcd536b7bc1efbe314223aedfe250f9063e33cbb4dfd347215a2'
            'SKIP'
            '7145e958d5209c3de5a40fe77f71141363dadfbbe7a206826d7b7d7c09c8f98f'
            '4a4c500fce66348a1d6a46d6bfb97263d90c4a9441aea6a42f7b0f3decedd8d8')

prepare() {
    cd ${srcdir}/${pkgname}
    patch -Np1 -i $srcdir/make-glibc_alloc_fix.patch
    patch -Np1 -i $srcdir/perl-use_safe_inclusion.patch
}

build() {
    cd ${srcdir}/${pkgname}
    ./configure --prefix=/usr --program-suffix=-$pkgver
    make
}

# Optional: decomment it to have tests running
#check() {
#    cd ${srcdir}/${pkgname}
#    make -k check
#}

package() {
    cd ${srcdir}/${pkgname}
    # Just install the binaries, so that it can live along-side with the normal make
    make DESTDIR=${pkgdir} install-exec
}