Browse code

First commit

Qurban Ullah authored on 27/02/2018 17:51:19
Showing 2 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,45 @@
1
+# $Id$
2
+# Maintainer: Qurban Ullah <qurbanullah@avouch.org>
3
+# Contributor: Qurban Ullah <qurbanullah@avouch.org>
4
+
5
+pkgname=dev86
6
+_tarname=Dev86src
7
+pkgver=0.16.21
8
+pkgrel=1
9
+pkgdesc="Simple C compiler to generate 8086 code"
10
+arch=('i686' 'x86_64')
11
+url="http://v3.sk/~lkundrak/dev86/"
12
+license=(GPL)
13
+if [ "${CARCH}" == "x86_64" ]; then
14
+  depends=('lib32-glibc')
15
+  makedepends=('bin86' 'gcc-multilib')
16
+else
17
+  makedepends=('bin86')
18
+fi
19
+options=('!libtool' '!strip' '!makeflags' 'staticlibs')
20
+source=(http://v3.sk/~lkundrak/dev86/Dev86src-$pkgver.tar.gz
21
+	mandir.patch)
22
+md5sums=('567cf460d132f9d8775dd95f9208e49a'
23
+         '509df653dec8956faf1a40a8c544d9ce')
24
+
25
+prepare() {
26
+	cd "${srcdir}/$pkgname-${pkgver}"
27
+
28
+	patch -p1 <$srcdir/mandir.patch
29
+}
30
+
31
+build() {
32
+	cd $srcdir/$pkgname-$pkgver
33
+	make PREFIX=/usr DIST="$pkgdir"
34
+}
35
+
36
+package() {
37
+	cd $srcdir/$pkgname-$pkgver
38
+	mkdir -p $pkgdir/usr/share/man/man1
39
+	make install-all DIST="$pkgdir"
40
+
41
+	# remove all the stuff supplied by bin86
42
+	rm $pkgdir/usr/bin/{as,ld,nm,objdump,size}86
43
+	rm $pkgdir/usr/share/man/man1/{as,ld}86.1
44
+}
45
+
0 46
new file mode 100755
... ...
@@ -0,0 +1,34 @@
1
+diff -wbBur dev86-0.16.19.org/dis88/Makefile dev86-0.16.19/dis88/Makefile
2
+--- dev86-0.16.19.org/dis88/Makefile	1998-07-31 17:01:40.000000000 +0400
3
+@@ -38,7 +38,7 @@
4
+ 
5
+ install:	dis88
6
+ 	install -m 755 -s dis88   $(DIST)$(PREFIX)/bin/dis86
7
+-	install -m 644    dis88.1 $(DIST)$(PREFIX)/man/man1/dis86.1
8
++	install -m 644    dis88.1 $(DIST)$(PREFIX)/share/man/man1/dis86.1
9
+ 
10
+ $(OBJ): dis.h a.out.h
11
+ 
12
+diff -wbBur dev86-0.16.19.org/Makefile dev86-0.16.19/Makefile
13
+--- dev86-0.16.19.org/Makefile	2012-08-14 00:10:08.000000000 +0400
14
+@@ -17,7 +17,7 @@
15
+ LIBDIR=  $(PREFIX)/lib/bcc
16
+ INCLDIR= $(PREFIX)/lib/bcc
17
+ ASLDDIR= $(BINDIR)
18
+-MANDIR=	 $(PREFIX)/man
19
++MANDIR=	 $(PREFIX)/share/man
20
+ CFLAGS=  -O
21
+ IFDEFNAME= ifdef
22
+ 
23
+diff -wbBur dev86-0.16.19.org/man/Makefile dev86-0.16.19/man/Makefile
24
+--- dev86-0.16.19.org/man/Makefile	1998-07-31 17:03:30.000000000 +0400
25
+@@ -1,5 +1,5 @@
26
+ 
27
+-MANDIR=/usr/man
28
++MANDIR=/usr/share/man
29
+ MAN1PG=as86.1 bcc.1 elks.1 elksemu.1 ld86.1
30
+ MAN1DIR=$(MANDIR)/man1
31
+