DEB distribution.

This commit is contained in:
Piotr Fusik 2014-06-11 14:41:49 +02:00
parent 2d8b3cde17
commit d1276f3d97
8 changed files with 55 additions and 8 deletions

13
.gitignore vendored
View File

@ -1,6 +1,7 @@
*.exe
*.obj
*.html
*.1
*.zip
*.dmg
xasm
xasm.exe
xasm.obj
xasm.html
xasm.1
xasm-*-windows.zip
xasm-*-osx.dmg

View File

@ -1,5 +1,9 @@
VERSION = 3.1.0
prefix = /usr/local
bindir = $(prefix)/bin
mandir = $(prefix)/share/man/man1
all: xasm xasm.html
xasm: xasm.d
@ -14,6 +18,16 @@ xasm.1: xasm.1.txt
xasm-$(VERSION)-windows.zip: xasm xasm.html xasm.properties
$(RM) $@ && 7z a -mx=9 -tzip $@ xasm.exe xasm.html xasm.properties
install: xasm xasm.1
mkdir -p $(DESTDIR)$(bindir) && install xasm $(DESTDIR)$(bindir)/xasm
mkdir -p $(DESTDIR)$(mandir) && install -m 644 xasm.1 $(DESTDIR)$(mandir)/xasm.1
uninstall:
$(RM) $(DESTDIR)$(bindir)/xasm $(DESTDIR)$(mandir)/xasm.1
deb:
debuild -b -us -uc
osx: xasm-$(VERSION)-osx.dmg
xasm-$(VERSION)-osx.dmg: osx/xasm osx/bin
@ -26,9 +40,9 @@ osx/bin:
mkdir -p osx && ln -s /usr/bin $@
clean:
$(RM) xasm xasm.exe xasm.html xasm.1 xasm-$(VERSION)-windows.zip xasm-$(VERSION)-osx.dmg
$(RM) xasm xasm.exe xasm.obj xasm.html xasm.1 xasm-$(VERSION)-windows.zip xasm-$(VERSION)-osx.dmg
rm -rf osx
.PHONY: all osx clean
.PHONY: all install uninstall deb osx clean
.DELETE_ON_ERROR:

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
xasm (3.1.0-1) UNRELEASED; urgency=low
* First deb packaging.
-- Piotr Fusik <fox@scene.pl> Wed, 11 Jun 2014 10:46:15 +0200

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

11
debian/control vendored Normal file
View File

@ -0,0 +1,11 @@
Source: xasm
Maintainer: Piotr Fusik <fox@scene.pl>
Section: devel
Priority: optional
Standards-Version: 3.9.3
Build-Depends: debhelper (>= 7), dmd (>= 2), asciidoc
Package: xasm
Architecture: any
Depends: ${shlibs:Depends}
Description: A 6502 cross-assembler with original syntax extensions.

7
debian/copyright vendored Normal file
View File

@ -0,0 +1,7 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Name: xasm
Source: https://github.com/pfusik/xasm
Files: *
Copyright: 1998-2014 Piotr Fusik <fox@scene.pl>
License: Poetic

2
debian/install vendored Normal file
View File

@ -0,0 +1,2 @@
usr/bin/xasm
usr/share/man/man1/xasm.1

6
debian/rules vendored Normal file
View File

@ -0,0 +1,6 @@
#!/usr/bin/make -f
%:
dh $@
override_dh_auto_install:
$(MAKE) DESTDIR=$$(pwd)/debian/tmp prefix=/usr install