[arch-commits] Commit in diet-ng/repos/community-x86_64 (PKGBUILD PKGBUILD)
Dan Printzell
wild at archlinux.org
Thu Nov 7 19:27:06 UTC 2019
Date: Thursday, November 7, 2019 @ 19:27:06
Author: wild
Revision: 524524
archrelease: copy trunk to community-x86_64
Added:
diet-ng/repos/community-x86_64/PKGBUILD
(from rev 524523, diet-ng/trunk/PKGBUILD)
Deleted:
diet-ng/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 88 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 49 insertions(+), 39 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-07 19:26:59 UTC (rev 524523)
+++ PKGBUILD 2019-11-07 19:27:06 UTC (rev 524524)
@@ -1,39 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-pkgname=diet-ng
-pkgver=1.6.0
-pkgrel=1
-pkgdesc='Generic compile-time template system based on an XML-like structure for D'
-arch=('x86_64')
-url='https://github.com/rejectedsoftware/diet-ng'
-license=('MIT')
-depends=('liblphobos')
-makedepends=('meson' 'ldc')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha512sums=('e0aeef9db109e2e09891c573839a48c3de68045f536db871e699cc37966649ded751b606310c6d18523881c29eea92da2b02afb7172fb56848507d6e2c3b76fd')
-
-build() {
- mkdir -p $pkgname-$pkgver/build
- cd $pkgname-$pkgver/build
-
- export DC=ldc
-
- arch-meson ..
-
- ninja
-}
-
-check() {
- cd $pkgname-$pkgver/build
-
- ninja test
-}
-
-package() {
- cd $pkgname-$pkgver/build
-
- DESTDIR="$pkgdir" ninja install
-
- install -Dm 644 ../LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
Copied: diet-ng/repos/community-x86_64/PKGBUILD (from rev 524523, diet-ng/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-11-07 19:27:06 UTC (rev 524524)
@@ -0,0 +1,49 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=diet-ng
+pkgver=1.6.0
+pkgrel=2
+pkgdesc='Generic compile-time template system based on an XML-like structure for D'
+arch=('x86_64')
+url='https://github.com/rejectedsoftware/diet-ng'
+license=('MIT')
+depends=('liblphobos')
+makedepends=('meson' 'ldc')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('e0aeef9db109e2e09891c573839a48c3de68045f536db871e699cc37966649ded751b606310c6d18523881c29eea92da2b02afb7172fb56848507d6e2c3b76fd')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ # Meson forgot to add this flag when creating a shared library.
+ sed -i "/soversion:/a ,link_args: '-shared'," meson.build
+}
+
+build() {
+ mkdir -p $pkgname-$pkgver/build
+ cd $pkgname-$pkgver/build
+
+ export DC=ldc
+
+ arch-meson ..
+
+ # meson broke -soname for D in the latest update
+ sed -i "s/-soname,/=-soname=/g" build.ninja
+
+ ninja
+}
+
+check() {
+ cd $pkgname-$pkgver/build
+
+ ninja test
+}
+
+package() {
+ cd $pkgname-$pkgver/build
+
+ DESTDIR="$pkgdir" ninja install
+
+ install -Dm 644 ../LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
More information about the arch-commits
mailing list