blob: 5bbfa2c7249f512f35eef61a5cd4e83d91621793 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
# Maintainer: Tpaefawzen <GitHub: Tpaefawzen>
# This is an example of a PKGBUILD for splitting packages. Use this as a
# start to creating your own, and remove these comments. For more information,
# see 'man PKGBUILD'. NOTE: Please fill out the license field for your package!
# If it is unknown, then please put 'unknown'.
pkgname=("clc-intercal"
# "clc-intercal-base"
# "clc-intercal-docs"
# "clc-intercal-icalc"
# "clc-intercal-inet"
# "clc-intercal-ui-curses"
# "clc-intercal-ui-line"
# "clc-intercal-ui-x"
# "vim-intercal"
)
pkgbase=clc-intercal
_actual_pkgver=1.00
pkgver="${_actual_pkgver//-/pre}"
pkgrel=1
epoch=
pkgdesc="New INTERCAL compiler (bundle)"
arch=(any)
url="https://uilebheist.srht.site/"
license=('custom')
groups=()
depends=(perl)
makedepends=()
checkdepends=()
optdepends=(
# "c-intercal: test with C-INTERCAL syslib" <- checkdepends
"perl-net-interface: INET"
"perl-socket6: IPv6 support for INET package"
"perl-io-socket-inet6: IPv6 support for INET package"
"perl-curses: UI-Curses"
"perl-term-readline-gnu: UI-Line"
"perl-gtk3: UI-X"
"perl-gtk2: UI-X (alternative for perl-gtk3)")
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
_pkgname_with_version="CLC-INTERCAL-${_actual_pkgver}"
_source_dirname="$_pkgname_with_version"
_url_base="https://uilebheist.srht.site/dist/${_pkgname_with_version}/"
source=("${_url_base}${_source_dirname}.tar.gz")
sha256sums=(06129dcb4e5db418ac93a6d2c927f15ace7a574c8c8d5220c8adb89dfff54dad)
build() {
cd "$_source_dirname"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
perl Makefile.PL
make
}
check() {
cd "$_source_dirname"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
make -k test # oh... not check
}
package() {
cd "$_source_dirname"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
# = OBTW the "make all" on Docs is NOOP
# Example programs
cd CLC-INTERCAL-Docs/doc/examples/
install -Dm0644 -t "$pkgdir/usr/share/clc-intercal/examples/" *.*i
install -Dm0644 -t "$pkgdir/usr/share/clc-intercal/examples/quantum/" quantum/*.*i
cd -
# HTML docs
cd CLC-INTERCAL-Docs/blib/htmldoc/
install -Dm0644 -t "$pkgdir/usr/share/doc/clc-intercal/htmldoc/" *.html
cd -
# HTML examples
cd CLC-INTERCAL-Docs/blib/htmlexamples
install -Dm0644 -t "$pkgdir/usr/share/doc/clc-intercal/htmlexamples/" *.html *.css
install -Dm0644 -t "$pkgdir/usr/share/doc/clc-intercal/htmlexamples/quantum/" quantum/*.html
cd -
# Additionally Vim syntax file
cd bonus/vim
install -Dm0644 -t "$pkgdir/usr/share/vim/vimfiles/ftdetect" ftdetect/*.vim
install -Dm0644 -t "$pkgdir/usr/share/vim/vimfiles/syntax" syntax/*.vim
cd -
# Finally COPYING file
# OBTW every "$src/COPYING" and "$src/CLC-INTERCAL-*/COPYING" are identifical
install -Dm0644 -t "$pkgdir/usr/share/licenses/clc-intercal/" COPYING
}
|