summaryrefslogtreecommitdiff
path: root/README
blob: 15c203e317bcd84f19a4ece8b2960d5633d7c978 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
This is a simple ncurses snake game written in C

-- Compilation Instructions --

$ ./configure
$ make

The resulting binary will be created in src/

-- Creating deb package --

Build the dist archive, and move it up one directory. ARCHIVE will be something like `simple-snake-0.1.tar.gz`

$ ./configure
$ make dist
$ mv ARCHIVE ..

Rename the project directory to match the ARCHIVE (i.e., if ARCHIVE is `simple-snake-0.1.tar.gz`, rename the project directory to `simple-snake-0.1`)

Now, update the `debian` directory and build

$ debmake -e EMAIL -f FULLNAME
$ debuild

The resulting package will be created in the same directory as ARCHIVE was placed

-- Creating rpm package --

If this is your first time building an rpm package:

$ rpmdev-setuptree

Now, build the dist archive, and move it to SOURCES. ARCHIVE will be something like `simple-snake-0.1.tar.gz`

$ ./configure
$ make dist
$ mv ARCHIVE ~/rpmbuild/SOURCES

Copy the spec file to SPECS

$ cp simple-snake.spec ~/rpmbuild/SPECS

Build the package

$ rpmbuild -ba ~/rpmbuild/SPECS/simple-snake.spec

The resulting package will be created under `~/rpmbuild/RPMS`