[arch-commits] Commit in xchm/trunk (PKGBUILD)
Balló György
bgyorgy at archlinux.org
Sat Jan 20 01:17:18 UTC 2018
Date: Saturday, January 20, 2018 @ 01:17:17
Author: bgyorgy
Revision: 284253
xchm: adopt the package
Modified:
xchm/trunk/PKGBUILD
----------+
PKGBUILD | 28 +++++++++++++---------------
1 file changed, 13 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-01-19 23:38:14 UTC (rev 284252)
+++ PKGBUILD 2018-01-20 01:17:17 UTC (rev 284253)
@@ -1,38 +1,36 @@
# $Id$
-# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
pkgname=xchm
pkgver=1.23
pkgrel=7
-pkgdesc="A cross-platform GUI front-end to chmlib"
+pkgdesc="Cross-platform GUI front-end to chmlib"
arch=('x86_64')
url="http://xchm.sourceforge.net/"
license=('GPL')
depends=('chmlib' 'wxgtk3')
-source=("https://downloads.sourceforge.net/sourceforge/xchm/${pkgname}-${pkgver}.tar.gz"
+source=("https://downloads.sourceforge.net/xchm/$pkgname-$pkgver.tar.gz"
xchm.desktop
xchm-wx3.0-compat.patch)
-md5sums=('486d029bd81071a2d04e7181909b1602'
- '629a10fc2bac9e6ca47daa66512f33b4'
- '80fa0eec2acb73860ccadff21aa5c71c')
+sha256sums=('8f8f5c60954f340e50f1613913eaca6ff489c10ca36b2570b360d8ccba77c062'
+ '5c3a47762361f2088eddff29c89e2217c9d063aee8ef152fe3ec9dd9deb8046f'
+ 'f98c3fa2a82f66ae627015388a9f0e671e280c2b9a1b6007f78a7b3ce013138f')
prepare() {
cd $pkgname-$pkgver
-# Fix build with WxGTK 3 (Debian)
- patch -p1 -i ../xchm-wx3.0-compat.patch
+ # Fix build with WxGTK 3 (Debian)
+ patch -Np1 -i ../xchm-wx3.0-compat.patch
}
build() {
- cd ${pkgname}-${pkgver}
-
- export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
+ cd $pkgname-$pkgver
./configure --prefix=/usr --with-wx-config=/usr/bin/wx-config-gtk3
make
}
package() {
- cd ${pkgname}-${pkgver}
-
- make DESTDIR=${pkgdir} install
- install -D -m644 ${srcdir}/xchm.desktop "${pkgdir}/usr/share/applications/xchm.desktop"
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+ install -Dm644 ../$pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
}
More information about the arch-commits
mailing list