summaryrefslogtreecommitdiff
path: root/community/bmake/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-10-31 01:12:24 -0700
committerroot <root@rshg054.dnsready.net>2013-10-31 01:12:24 -0700
commitb2a6f1b28b7fa31088cab9a90b0f5ab97948534d (patch)
treeafa7b467e44b704b69c66862852a8c3118b8e308 /community/bmake/PKGBUILD
parent7c151ac5589d3dbef5972f69a62b847ecf565bfa (diff)
Thu Oct 31 01:09:50 PDT 2013
Diffstat (limited to 'community/bmake/PKGBUILD')
-rw-r--r--community/bmake/PKGBUILD29
1 files changed, 19 insertions, 10 deletions
diff --git a/community/bmake/PKGBUILD b/community/bmake/PKGBUILD
index 76eb57865..27475c9c4 100644
--- a/community/bmake/PKGBUILD
+++ b/community/bmake/PKGBUILD
@@ -1,29 +1,38 @@
-# $Id: PKGBUILD 99556 2013-10-29 17:22:35Z spupykin $
-# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Alex Szczuczko <alex at szc dot ca>
# Contributor: Devin Cofer <ranguvar{AT]archlinux[DOT}us>
# Contributor: Imanol Celaya <ilcra1989@gmail.com>
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
}