summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2021-08-17 15:05:10 -0600
committerLuke Shumaker <lukeshu@parabola.nu>2021-08-17 15:05:10 -0600
commit53ee3144a5d9716bcd47dc499c713c2d20985f48 (patch)
tree39609a62e5a1aef00e2d6828f87b59777e1b22ff
parentc822c3f6e43678c7f1340935d835f1cf25cb47b2 (diff)
pcr/libixp-hg: Rebuild with newer GCC
-rw-r--r--pcr/libixp-hg/PKGBUILD20
1 files changed, 15 insertions, 5 deletions
diff --git a/pcr/libixp-hg/PKGBUILD b/pcr/libixp-hg/PKGBUILD
index 9fa3ebe59..f8ebd1957 100644
--- a/pcr/libixp-hg/PKGBUILD
+++ b/pcr/libixp-hg/PKGBUILD
@@ -1,4 +1,4 @@
-# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+# Maintainer: Luke Shumaker <lukeshu@parabola.nu>
pkgname="libixp-hg"
pkgver=148
@@ -9,7 +9,7 @@ license=("MIT")
provides=("libixp")
conflicts=("libixp")
-pkgrel=3
+pkgrel=4
arch=("i686" "x86_64")
makedepends=("txt2tags")
@@ -24,14 +24,24 @@ mksource() {
rm "${srcdir}/${pkgname}-${pkgver}/test/o.client"
}
-_makeflags=("PREFIX=/usr" "ETC=/etc")
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ sed -i 's|PREFIX = /usr/local|PREFIX = /usr|' config.mk
+ sed -i 's|ETC = $(PREFIX)/etc|ETC = /etc|' config.mk
+ sed -i 's| $(DEBUGCFLAGS)||' config.mk
+ # GCC 10 changed the default from -fcommon to -fno-common
+ sed -i '/^CFLAGS += -fcommon$/d' config.mk
+ echo 'CFLAGS += -fcommon' >> config.mk
+}
+
build() {
cd "$srcdir/$pkgname-$pkgver"
- make "${_makeflags[@]}"
+ make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
- make "${_makeflags[@]}" DESTDIR="$pkgdir" install
+ make DESTDIR="$pkgdir" install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}