[arch-commits] Commit in bsd-games/trunk (PKGBUILD)

Eric Bélanger eric at nymeria.archlinux.org
Fri Mar 22 02:12:12 UTC 2013


    Date: Friday, March 22, 2013 @ 03:12:12
  Author: eric
Revision: 86787

Remove pkgdir reference in build function

Modified:
  bsd-games/trunk/PKGBUILD

----------+
 PKGBUILD |   22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-03-22 01:03:43 UTC (rev 86786)
+++ PKGBUILD	2013-03-22 02:12:12 UTC (rev 86787)
@@ -17,15 +17,21 @@
         config.params stdio.h.diff gamescreen.h.diff getline.diff
         number.c.diff bsd-games-2.17-64bit.patch
         bad-ntohl-cast.diff null-check.diff)
+md5sums=('238a38a3a017ca9b216fc42bde405639'
+         '9916baef5cb8aa09361f67de12ca7bef'
+         '784f68c796b9e099ac008aecef1af998'
+         '9c0fa6e2345bd0a7945c9a41d5ba68aa'
+         '5356bd6999ae53dd27cb2a0f837a3e70'
+         '47249a90f38ccb4dd07625b245bbc728'
+         '257813b76a41c8b2c02701571c804227'
+         '3d21a9dad2e603ddf3842972e4ff85a1'
+         'a43ca0b4b9ebc4eec26372c52014ac0a')
 
 build() {
   cd "${srcdir}/$pkgname-$pkgver"
   [ "$CARCH" = "x86_64" ] && patch -p1 < "$srcdir/bsd-games-2.17-64bit.patch"
   cp "${srcdir}/config.params" .
 
-# Patches
-  sed -i "s%PKGDIR%$pkgdir%" config.params
-
   # Several games use their own internal functions named getline.  All
   # are different, and none is the getline from glibc.  So we need a patch
   # in order to compile.  Each internal getline function is prefixed
@@ -65,6 +71,7 @@
 
 package() {
   cd "${srcdir}/$pkgname-$pkgver"
+  sed -i "s%PKGDIR%$pkgdir%g" hide-game install-man install-score Makeconfig subst.sed
   make install
   # This make install command does install to $pkgdir, because of the
   # change to config.params in the build function.
@@ -91,12 +98,3 @@
   install -D -m644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/COPYING"
 }
 
-md5sums=('238a38a3a017ca9b216fc42bde405639'
-         '9916baef5cb8aa09361f67de12ca7bef'
-         '784f68c796b9e099ac008aecef1af998'
-         '9c0fa6e2345bd0a7945c9a41d5ba68aa'
-         '5356bd6999ae53dd27cb2a0f837a3e70'
-         '47249a90f38ccb4dd07625b245bbc728'
-         '257813b76a41c8b2c02701571c804227'
-         '3d21a9dad2e603ddf3842972e4ff85a1'
-         'a43ca0b4b9ebc4eec26372c52014ac0a')




More information about the arch-commits mailing list