2019-06-25 23:42:26 -06:00
|
|
|
#!/bin/sh -e
|
2019-10-08 02:18:28 -06:00
|
|
|
|
2020-02-11 23:58:54 -07:00
|
|
|
for patch in *.patch; do
|
|
|
|
patch -p1 < "$patch"
|
|
|
|
done
|
2019-06-25 23:42:26 -06:00
|
|
|
|
2019-10-08 02:18:28 -06:00
|
|
|
# Avoid repeating ourselves.
|
|
|
|
mk() {
|
|
|
|
make \
|
|
|
|
libdir=/usr/lib/ \
|
|
|
|
bindir=/usr/bin/ \
|
|
|
|
mandir=/usr/share/man/ \
|
|
|
|
includedir=/usr/include/ \
|
|
|
|
"$@"
|
|
|
|
}
|
2019-06-25 23:42:26 -06:00
|
|
|
|
2020-02-11 23:58:54 -07:00
|
|
|
mk CC="${CC:-cc}"
|
2019-10-08 02:18:28 -06:00
|
|
|
mk DESTDIR="$1" install
|