Browse Source

make: add new package

tags/milky-way/v0.3
André Silva 1 year ago
parent
commit
081f33b612
2 changed files with 57 additions and 0 deletions
  1. +42
    -0
      make/PKGBUILD
  2. +15
    -0
      make/guile-2.2.patch

+ 42
- 0
make/PKGBUILD View File

@@ -0,0 +1,42 @@
# Maintainer (Arch): Allan McRae <allan@archlinux.org>
# Contributor (Arch): judd <jvinet@zeroflux.org>
# Maintainer: André Silva <emulatorman@hyperbola.info>

pkgname=make
pkgver=4.2.1
pkgrel=2.hyperbola1
pkgdesc="GNU make utility to maintain groups of programs"
arch=('i686' 'x86_64')
url="https://www.gnu.org/software/make"
license=('GPL-3')
groups=('base-devel')
depends=('glibc' 'guile')
source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.bz2{,.sig}
guile-2.2.patch)
sha512sums=('9cf00869a2f938492554f71d8cb288b5b009b3bd0489ef164f2c8f6532fc37db5c7e20af1dea288536e7c9710ee0bc6e1ddcdfc4928a8540e6e43661741825b8'
'SKIP'
'2c451ff443f189ba4202fee6739a65faefb7cfa380f820fc11925e27ef180d3e9ff8d5185dac58a1d11ec1b79c3b23e9b932fb4419054a7e4de0dfb0c65b18ff')
validpgpkeys=('3D2554F0A15338AB9AF1BB9D96B047156338B6D4') # Paul Smith

prepare() {
cd ${pkgname}-${pkgver}
patch -p1 -i ${srcdir}/guile-2.2.patch
autoreconf -fi
}

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

check() {
cd ${pkgname}-${pkgver}
make -k check
}

package() {
cd ${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
}

+ 15
- 0
make/guile-2.2.patch View File

@@ -0,0 +1,15 @@
diff --git a/configure.ac b/configure.ac
index 64ec870..eb1139f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -168,8 +168,8 @@ AC_ARG_WITH([guile], [AS_HELP_STRING([--with-guile],
# comes with it's own PC file so we have to specify them as individual
# packages. Ugh.
AS_IF([test "x$with_guile" != xno],
-[ PKG_CHECK_MODULES([GUILE], [guile-2.0], [have_guile=yes],
- [PKG_CHECK_MODULES([GUILE], [guile-1.8], [have_guile=yes],
+[ PKG_CHECK_MODULES([GUILE], [guile-2.2], [have_guile=yes],
+ [PKG_CHECK_MODULES([GUILE], [guile-2.0], [have_guile=yes],
[have_guile=no])])
])

Loading…
Cancel
Save