blob: ab53a3204dd284cc1e508ee176e2b3f75f15ca9b (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#!/bin/bash
# Maintainer: dreieck
pkgname=tapecalc-add-compat
epoch=1
pkgver=t20240110
pkgrel=1
pkgdesc="Provides compatibility: Makes 'tapecalc' available also under it's original name 'add'."
url="http://aur.archlinux.org/packages/tapecalc/"
license=('custom: public domain.')
arch=(
'any'
)
depends=(
"tapecalc"
)
makedepends=()
optdepends=()
provides=(
"add=${pkgver}"
)
replaces=()
conflicts=(
"add"
)
options=('emptydirs')
source=(
'COPYING'
)
sha256sums=(
'90d77bbbe6aa2cfdaf6eaa3580fd1a981e0d0428ae586ac37b47aee5e67fcf12'
)
pkgver() {
# tapecalc -V
pacman -Qi tapecalc | grep -E '^Version[[:space:]]*:' | awk -F ':' '{print $2}' | tr -d '[[:space:]]' | sed -E 's|\-[^-]*$||'
}
package() {
install -v -d -m755 "${pkgdir}/usr/bin"
cd "${pkgdir}/usr/bin"
ln -sv "tapecalc" "add"
install -v -D -m644 "${srcdir}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
|