blob: 774438a55047e603476f201a19678ba69cfecbb0 (
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
|
# Maintainer: Vain <aurmaint1 on host: uninformativ dot de>
# Contributor: Mark Wagie <yochanan dot marqos at gmail dot com>
# Contributor: Konstantin Mochalov <incredible dot angst at gmail dot com>
# Contributor: FredBezies <fredbezies at gmail dot com>
# Contributor: Sean Bartell <archlinux at yotann dot org>
pkgname=ncsa-mosaic-git
epoch=1
pkgver=2.7b6.r39.2e9a605
_pkgver=2.7b6
pkgrel=1
pkgdesc="One of the first graphical web browsers"
url="https://github.com/alandipert/ncsa-mosaic"
license=('custom')
arch=('i686' 'x86_64')
depends=('openmotif' 'libjpeg' 'libpng' 'libxmu' 'libxpm' 'xorg-fonts-misc' 'xorg-fonts-100dpi'
'xorg-fonts-75dpi')
makedepends=('git')
provides=("${pkgname%-git}" 'mosaic')
conflicts=("${pkgname%-git}" 'mosaic')
options=(!makeflags)
source=('git+https://github.com/alandipert/ncsa-mosaic.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "$_pkgver.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-git}"
local customflags
# https://github.com/alandipert/ncsa-mosaic/issues/14
customflags='-fcommon'
# Required since GCC 14, which turned many previous warnings
# into errors.
# https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors
customflags="$customflags -Wno-error=implicit-function-declaration"
customflags="$customflags -Wno-error=implicit-int"
customflags="$customflags -Wno-error=incompatible-pointer-types"
customflags="$customflags -Wno-error=int-conversion"
make linux customflags="$customflags"
}
package() {
cd "$srcdir/${pkgname%-git}"
install -Dm755 src/Mosaic -t "$pkgdir/usr/bin"
install -Dm644 COPYRIGHT -t "$pkgdir/usr/share/licenses/${pkgname%-git}"
install -Dm644 docs/resources.html -t "$pkgdir/usr/share/doc/${pkgname%-git}"
}
|