gdritter repos GRUtils / 8138a6e
Added some small PKGBUILD files for Arch Linux building Getty Ritter 9 years ago
5 changed file(s) with 84 addition(s) and 0 deletion(s). Collapse all Expand all
11 CC = musl-gcc
22 LDFLAGS = -lm
3 prefix = /usr/local
34
45 all: escstring
56
67 escstring:
78 $(CC) $(LDFLAGS) escstring.c -o $@
89
10 install:
11 install -m 0755 escstring $(prefix)/bin
12
913 clean:
1014 rm -f escstring escstring.o
1 pkgname=whatchamacallit-escstring
2 pkgver=0.0.1
3 pkgrel=1
4 pkgdesc="JSON-like string escaping."
5 url="http://www.gdritter.com"
6 arch=('x86_64' 'i686')
7 license=('WTFPL')
8 depends=('musl')
9 optdepends=()
10 makedepends=()
11 conflicts=()
12 replaces=()
13 backup=()
14 install=''
15 source=('escstring.c'
16 'escstring.1'
17 'Makefile')
18 md5sums=('5d1bb6c729091c19bab98189d26a4772'
19 'a8031df89e9cbc0c565046f60a359837'
20 'e35cfdabe4de2c98895840f559a70bda')
21
22
23 build() {
24 make
25 }
26
27 package() {
28 mkdir -p ${pkgdir}/usr/local/bin
29 mkdir -p ${pkgdir}/usr/local/man/man8
30 make prefix="${pkgdir}/usr/local" install
31 install -g 0 -o 0 -m 0644 escstring.1 ${pkgdir}/usr/local/man/man8/
32 gzip ${pkgdir}/usr/local/man/man8/escstring.1
33 }
1 .\" Manpage for escstring.
2 .TH man 8 "05 Feb 2015" "1.0" "escstring man page"
3 .SH NAME
4 escstring \- escape a string on stdin
5 .SH SYNOPSIS
6 nuseradd
7 .SH DESCRIPTION
8 escstring takes input on stdin and produces a JSON-compatible string on
9 stdout.
10 .SH OPTIONS
11 escstring takes no options.
12 .SH BUGS
13 No known bugs.
14 .SH AUTHOR
15 Getty Ritter (getty.ritter@gmail.com)
11 CC = musl-gcc
22 LDFLAGS = -lm
3 prefix = /usr/local
34
45 all: expseq
56
67 expseq:
78 $(CC) $(LDFLAGS) expseq.c -o $@
89
10 install:
11 install -m 0755 expseq $(prefix)/bin
12
913 clean:
1014 rm -f expseq expseq.o
1 pkgname=whatchamacallit-expseq
2 pkgver=0.0.1
3 pkgrel=1
4 pkgdesc="Like seq but for exponentially increasing numbers."
5 url="http://www.gdritter.com"
6 arch=('x86_64' 'i686')
7 license=('WTFPL')
8 depends=('musl')
9 optdepends=()
10 makedepends=()
11 conflicts=()
12 replaces=()
13 backup=()
14 install=''
15 source=('expseq.c'
16 'Makefile')
17 md5sums=('7a9b9ee6b46525fffc5557efb28fd639'
18 '4f37c062e2b0057d6f454bfe61cc04a7')
19
20
21 build() {
22 make
23 }
24
25 package() {
26 mkdir -p ${pkgdir}/usr/local/bin
27 make prefix="${pkgdir}/usr/local" install
28 }