summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7fb1fdcc29f6cdecdfc92a40996a844902c1ecef (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
# Contributor: Alexander F. Rødseth <xyproto@archlinux.org>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=zoem
pkgver=21.341
pkgrel=1
pkgdesc='Zoem programming language'
arch=(x86_64)
url='https://micans.org/zoem/'
license=(GPL2)
depends=('readline')
makedepends=('cimfomfa')
options=('makeflags')
source=("https://micans.org/zoem/src/$pkgname-${pkgver/./-}.tar.gz")
sha256sums=('370efc7f999572888f4e722cbff40efba395a5435f192e734e7ff87810a68768')

prepare() {
  cd "$pkgname-${pkgver/./-}/src"
  sed -i '3s/^char/extern char/' "version.h"
}

build() {
  cd "$pkgname-${pkgver/./-}"
  export LDFLAGS="$LDFLAGS -Wl,--allow-multiple-definition"
  export CFLAGS="$CFLAGS -march=x86-64 -std=c11 -w"
  export CXXFLAGS="$CXXFLAGS -march=x86-64 -std=c++14 -w"
  autoreconf -i
  ./configure --prefix=/usr --enable-maintainer-mode
  make
}

package() {
  make -C "$pkgname-${pkgver/./-}" install DESTDIR="$pkgdir"
}