diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2021-08-17 15:05:12 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2021-08-17 15:05:12 -0600 |
commit | bc0d89a1f4dfa61d55d20ca6ce4b4493b2745423 (patch) | |
tree | 1efc4f640587191b02e7bb40f31d1820bb2c82b9 | |
parent | 4e283763effe2efc511314ccc8743724fcdfdb2b (diff) |
pcr/wmii-hg: Fix the build for modern systemslukeshu/wmii
-rw-r--r-- | pcr/wmii-hg/PKGBUILD | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/pcr/wmii-hg/PKGBUILD b/pcr/wmii-hg/PKGBUILD index 5c5cfc979..ca2e16b5d 100644 --- a/pcr/wmii-hg/PKGBUILD +++ b/pcr/wmii-hg/PKGBUILD @@ -1,4 +1,4 @@ -# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer: Luke Shumaker <lukeshu@parabola.nu> # Maintainer (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor (Arch): Jeffrey 'jf' Lim <jfs.world@gmail.com> @@ -12,10 +12,12 @@ license=("MIT") provides=("wmii") conflicts=("wmii") -pkgrel=3 +pkgrel=4 arch=("i686" "x86_64") depends=('libxft' 'libxrandr' 'libxinerama') -makedepends=('txt2tags' 'libixp') # libixp is statically linked +makedepends=('txt2tags' + 'libixp' # libixp is statically linked + 'python2') source=("https://repo.parabola.nu/other/${pkgname}/${pkgname}-${pkgver}.tar.gz" fix-for-weird-xinerama-settings.patch) @@ -39,8 +41,10 @@ prepare() { sed -i 's|PREFIX = /usr/local|PREFIX = /usr|' config.mk sed -i 's|ETC = $(PREFIX)/etc|ETC = /etc|' config.mk sed -i 's|PYTHON = .*|PYTHON = python2|' config.mk - sed -i '/^CFLAGS += -O2$/d' config.mk - echo 'CFLAGS += -O2' >> 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() { |