summaryrefslogtreecommitdiff
path: root/manualPorts/topal/Pkgfile
blob: 73759beed702cb804290eb620828038e8a1a1d82 (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
# Description: Topal is a glue program that links GnuPG and Alpine
# URL:         https://zircon.org.uk/topal
# Maintainer:  Erich Eckner, crux at eckner dot net
# Depends on:  gcc-ada

name=topal
version=80
release=1
source=("https://zircon.org.uk/topal/rel-${version}/topal-package-${version}.tgz"{,.asc})

build() {
  cd "$SRC/${name}-${version}"

# Remove PDF build stuff
  sed -i 's/binary topal.pdf/binary/' Makefile

# Build Topal and MIME-tool
  make distclean
  make -j1

# Install Topal binary, manual page and documentation
  install -D -m755 "${name}" "${PKG}/usr/bin/${name}"
  install -D -m644 "${name}.man" "${PKG}/usr/share/man/man1/${name}.1"
# Replaced by some PDF stuff which we will not build
  #install -D -m644 README.txt "${PKG}/usr/share/doc/${PKG}/README"

# Install Topal's version of MIME-tool and manual page
  install -D -m755 MIME-tool/mime-tool "${PKG}/usr/bin/mime-tool"
  install -D -m644 MIME-tool/mime-tool.man "${PKG}/usr/share/man/man1/mime-tool.1"
}