summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ee87abc449f09f8a25fa05353a0b2e7d4d8c0e0 (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
# Maintainer: Vlad Pirlog <(firstname) at (lastname) dot com>
# Contributor: Daniel Menelkir <dmenelkir@gmail.com>
# Contributor: Kyle Keen <keenerd@gmail.com>
# Contributor: Jeff Mickey <j@codemac.net>

pkgname=wtf
pkgver=20230906
pkgrel=1
pkgdesc='Acronym dictionary, with additions from NetBSD and wikipedia'
arch=('any')
url='https://sourceforge.net/projects/bsdwtf/'
license=('BSD')
depends=('bash')
makedepends=('git')
source=("https://sourceforge.net/projects/bsdwtf/files/wtf-$pkgver.tar.gz"
        'https://raw.github.com/keenerd/wtf/0623381d92b2c5d3e94b00c9eb06fb5d4d85d014/acronyms.computing'
        'LICENSE')
b2sums=('5b89b0685ac1cb8269ce3e4fab567f65a008730002cf87d54ac63df056b17b4f40f524752837ddb5b52ec18e90450104162b677aa7cdde9e0c8ba7bbb24f04a9'
        'e0835247970d769ac0570e51af78bc4f78ebab0d7c8c056bfafcbba133893c7de8bd26d468ac9de54d4fc5626e72d0222b53552af8b44a02324e3cb121aacd21'
        '65484e19640f8e6e08c0f97f8985ccdb7dde887f1bf963503de5c7f930e0b938dd2736408382b78e914c71b0727c0e285fc7e1496b656dd4ba958f80a3f19189')

prepare() {
    sed -i 's|/usr/share/misc/|/usr/share/wtf/|' "$srcdir/wtf-$pkgver/wtf"
}

package() {
    cd "$srcdir/wtf-$pkgver"

    install -Dm755 wtf "$pkgdir/usr/bin/wtf"
    install -Dm644 wtf.6 "$pkgdir/usr/share/man/man6/wtf.6"
    install -Dm644 acronyms "$pkgdir/usr/share/wtf/acronyms"
    install -Dm644 acronyms.comp "$pkgdir/usr/share/wtf/acronyms.comp"
    # install -Dm644 acronyms-o.fake "$pkgdir/usr/share/wtf/acronyms-o"
    install -Dm644 acronyms-o.real "$pkgdir/usr/share/wtf/acronyms-o"

    install -Dm644 "$srcdir/acronyms.computing" "$pkgdir/usr/share/wtf/acronyms.computing"

    install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}