Diff

Differences From Artifact [44af0f063b]:

To Artifact [0c40224677]:


1
2
3










4
5
6
7
8
9
10
11
12
13
#! /usr/bin/env bash

version="$1"










version_release='1'
platform="$(uname -m)"
url="http://rkeene.org/devel/appfs/appfs-${version}.tar.gz"
make_args=(
	prefix=/usr
	sbindir=/sbin
	mandir=/usr/man
)

if [ ! -f '/etc/slackware-version' ]; then



>
>
>
>
>
>
>
>
>
>


<







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

16
17
18
19
20
21
22
#! /usr/bin/env bash

version="$1"
url="$2"

if [ -z "${version}" ]; then
	echo 'usage: make-slackware-package <version> [<url>]' >&2
	exit 1
fi
if [ -z "${url}" ]; then
	url="http://rkeene.org/devel/appfs/appfs-${version}.tar.gz"
fi

version_release='1'
platform="$(uname -m)"

make_args=(
	prefix=/usr
	sbindir=/sbin
	mandir=/usr/man
)

if [ ! -f '/etc/slackware-version' ]; then
31
32
33
34
35
36
37


38





39
40
41
42
43
44
45

	set -x

	cd "${workdir}" || exit 1

	installdir="$(pwd)/installed"



	wget -O appfs.tar.gz "${url}"





	tar -xf appfs.tar.gz || exit 1

	cd "appfs-${version}" || exit 1

	make "${make_args[@]}" || exit 1
	make "${make_args[@]}" DESTDIR="${installdir}" install || exit 1








>
>
|
>
>
>
>
>







40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61

	set -x

	cd "${workdir}" || exit 1

	installdir="$(pwd)/installed"

	case "${url}" in
		*tp://*)
			wget -O appfs.tar.gz "${url}"
			;;
		*)
			cp "${url}" appfs.tar.gz
			;;
	esac
	tar -xf appfs.tar.gz || exit 1

	cd "appfs-${version}" || exit 1

	make "${make_args[@]}" || exit 1
	make "${make_args[@]}" DESTDIR="${installdir}" install || exit 1