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

Sergej Pupykin spupykin at nymeria.archlinux.org
Wed Oct 30 11:12:33 UTC 2013


    Date: Wednesday, October 30, 2013 @ 12:12:33
  Author: spupykin
Revision: 99589

upgpkg: bmake 20131001-2

upd

Modified:
  bmake/trunk/PKGBUILD

----------+
 PKGBUILD |   29 +++++++++++++++++++----------
 1 file changed, 19 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-10-30 11:05:24 UTC (rev 99588)
+++ PKGBUILD	2013-10-30 11:12:33 UTC (rev 99589)
@@ -1,5 +1,3 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
 # Maintainer: Alex Szczuczko <alex at szc dot ca>
 # Contributor: Devin Cofer <ranguvar{AT]archlinux[DOT}us>
 # Contributor: Imanol Celaya <ilcra1989 at gmail.com>
@@ -6,24 +4,35 @@
 
 pkgname=bmake
 pkgver=20131001
-pkgrel=1
+pkgrel=2
 pkgdesc="Portable version of the NetBSD 'make' build tool"
 arch=('i686' 'x86_64')
 url="http://www.crufty.net/help/sjg/bmake.html"
 license=('BSD')
-depends=('bmake-mk-files')
 source=("http://www.crufty.net/ftp/pub/sjg/bmake-$pkgver.tar.gz")
 sha256sums=('0a91ac60b82270c4b4f21a43e66eb51c32b4df55e01ea592e42eb323909a559b')
 
+prepare() {
+    cd "$srcdir/$pkgname"
+    # Add missing bsd.*.mk symlinks
+    _links_orig="dep doc init lib links man nls obj own prog subdir"
+    _links_new="dep doc inc init lib links man nls obj own prog subdir"
+    sed -i -e "s/$_links_orig/$_links_new/" mk/install-mk
+}
+
 build() {
-    rm -rf bmake-build
-    mkdir bmake-build
+    cd "$srcdir"
+    mkdir -p bmake-build
     cd bmake-build
-    ../bmake/configure --prefix=/usr --with-default-sys-path=/usr/share/mk
-    sh make-bootstrap.sh
+    sh ../bmake/boot-strap --prefix=/usr
 }
 
 package() {
-    install -Dm755 bmake-build/bmake "$pkgdir"/usr/bin/bmake
-    install -Dm644 bmake/bmake.1 "$pkgdir"/usr/share/man/man1/bmake.1
+    cd "$srcdir/bmake-build"
+    # Fix directory permissions on install
+    install -dm0755 "$pkgdir/usr/bin"
+    install -dm0755 "$pkgdir/usr/share/man/cat1"
+    install -dm0755 "$pkgdir/usr/share/licenses/$pkgname"
+    sh ../bmake/boot-strap --prefix=/usr --install-destdir="$pkgdir" op=install
+    head -n70 ../bmake/main.c >$pkgdir/usr/share/licenses/$pkgname/LICENSE
 }




More information about the arch-commits mailing list