[arch-commits] Commit in fcitx-chewing/trunk (PKGBUILD)
Chih-Hsuan Yen
yan12125 at archlinux.org
Thu May 7 03:38:47 UTC 2020
Date: Thursday, May 7, 2020 @ 03:38:46
Author: yan12125
Revision: 625237
upgpkg: fcitx-chewing 0.2.3-3; rebuild for rebuilderd [1] and hardening [2]
[1] https://www.archlinux.org/todo/buildinfo-format-1-rebuild/
[2] https://wiki.archlinux.org/index.php/CMake_package_guidelines
Modified:
fcitx-chewing/trunk/PKGBUILD
----------+
PKGBUILD | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-05-07 03:22:31 UTC (rev 625236)
+++ PKGBUILD 2020-05-07 03:38:46 UTC (rev 625237)
@@ -1,8 +1,9 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
pkgname=fcitx-chewing
pkgver=0.2.3
-pkgrel=2
+pkgrel=3
pkgdesc='Fcitx Wrapper for chewing'
arch=('x86_64')
url="https://github.com/fcitx/fcitx-chewing"
@@ -17,11 +18,17 @@
build() {
cd ${pkgname}-${pkgver}
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
- make
+ # Bring in -D_FORTIFY_SOURCE=2
+ export CFLAGS+=" $CPPFLAGS"
+ export CXXLAGS+=" $CPPFLAGS"
+
+ cmake -B build -S . \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=None
+ make -C build
}
package() {
- cd ${pkgname}-${pkgver}
+ cd ${pkgname}-${pkgver}/build
make DESTDIR="$pkgdir" install
}
More information about the arch-commits
mailing list