Skip to content

Commit 725da0a

Browse files
authored
Merge pull request #30 from ra-id-j/arch-pkgbuild
mostly changes to README.md
2 parents 239f5f1 + a0f36f2 commit 725da0a

2 files changed

Lines changed: 34 additions & 5 deletions

File tree

README.md

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,46 @@ A Common Lisp library for creating and managing asynchronous processes with PTY
1111

1212
## Installation
1313

14+
The build system is GNU Autotools, with a somewhat non-standard
15+
setup.
16+
17+
The default goal `all` in `GNUmakefile` can perform the following
18+
sequence in one go:
19+
1. Run `autoconf` using `configure.ac` and `Makefile.am` as inputs.
20+
2. Run `configure` (generated in step 1) to produce a `Makefile`.
21+
3. Build and compile using the generated `Makefile`.
22+
1423
### Unix-like Systems (Linux, FreeBSD, macOS)
1524
using GNU make, `gmake` on Freebsd and macOS.
1625

1726
```bash
18-
git clone https://github.com/soppelmann/async-process.git
27+
git clone https://github.com/lem-project/async-process.git
1928
cd async-process
2029
make
2130
sudo make install
2231
```
2332

2433
The library installs to `/usr/local` by default. To install elsewhere:
2534

35+
To install to a different destination, the `make` command should
36+
be substituted with another similar to the examples below, passing
37+
an explicitly-set `PREFIX` environment variable.
38+
39+
```bash
40+
PREFIX=/your/custom/path make
41+
PREFIX=/usr make
42+
PREFIX=$HOME/.local make
43+
```
44+
45+
Alternatively, you can run the Autotools toolchain sequence
46+
as follows, with a slightly different method of setting the
47+
destination prefix:
48+
2649
```bash
27-
make install PREFIX=/usr
28-
make install PREFIX=$HOME/.local
50+
autoreconf -i
51+
./configure --prefix=/your/custom/path
52+
make
53+
make install
2954
```
3055

3156
#### Configuration options
@@ -43,7 +68,7 @@ sudo make install
4368
On Windows, no C compilation is required. The library uses a pure Lisp implementation via CFFI:
4469

4570
```bash
46-
git clone https://github.com/soppelmann/async-process.git
71+
git clone https://github.com/lem-project/async-process.git
4772
cd async-process
4873
```
4974

configure.ac

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
AC_INIT([async-process], [0.1])
1+
dnl Get the version number from async-process.asd
2+
m4_define([ASD_VERSION],
3+
m4_esyscmd_s([grep :version src/async-process.asd | cut -d\" -f2]))
4+
AC_INIT([async-process],
5+
[ASD_VERSION])
26
AC_CONFIG_HEADERS([config.h])
37

48
# Library versioning (current:revision:age)

0 commit comments

Comments
 (0)