[arch-commits] Commit in camlp4/trunk (PKGBUILD)
Alexander Rødseth
arodseth at gemini.archlinux.org
Mon Jan 31 20:50:30 UTC 2022
Date: Monday, January 31, 2022 @ 20:50:30
Author: arodseth
Revision: 1121317
For the fat-lto-objects TODO list
Modified:
camlp4/trunk/PKGBUILD
----------+
PKGBUILD | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-31 20:43:47 UTC (rev 1121316)
+++ PKGBUILD 2022-01-31 20:50:30 UTC (rev 1121317)
@@ -1,28 +1,29 @@
-# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
# Contributor: Tobias Powalowski <tpowa at archlinux.org>
pkgname=camlp4
_ocaml_ver=4.13.1
pkgver=${_ocaml_ver%.*}+1
-pkgrel=1
+pkgrel=2
pkgdesc='Caml preprocessor and pretty-printer'
-arch=('x86_64')
-license=('GPL2')
+arch=(x86_64)
+license=(GPL2)
url='https://github.com/ocaml/camlp4/releases'
depends=("ocaml>=${_ocaml_ver}")
-makedepends=('git' 'ocamlbuild' 'ocaml-compiler-libs')
-options=('!makeflags' '!emptydirs' 'staticlibs')
-source=("https://github.com/ocaml/camlp4/archive/$pkgver.tar.gz")
-sha256sums=('1854eee6007af5ea746e82535bde052d465d9fefda29a2080e84e2bcb2c89ed9')
+makedepends=(git ocamlbuild ocaml-compiler-libs)
+options=(!makeflags !emptydirs staticlibs)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ocaml/camlp4/archive/$pkgver.tar.gz")
+b2sums=('78b1366163d8f2cca577c787162b950806b61a242afe7e088829f546a3a9fdc35698f4e29ac64e1fb815735f7049f8a3ee866aa675660da5ed415d531bdfb6ab')
build() {
- cd "${srcdir}/$pkgname-${pkgver/+/-}"
+ cd "$pkgname-${pkgver/+/-}"
+ CFLAGS+=' -ffat-lto-objects -w'
./configure
make all camlp4/META
}
package() {
- cd "${srcdir}/$pkgname-${pkgver/+/-}"
+ cd "$pkgname-${pkgver/+/-}"
make \
BINDIR="$pkgdir/usr/bin" \
LIBDIR="$pkgdir/usr/lib/ocaml" \
@@ -29,5 +30,3 @@
PKGDIR="$pkgdir/usr/lib/ocaml" \
install install-META
}
-
-# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list