PKGBUILDs/extra/io/PKGBUILD

56 lines
1.9 KiB
Bash
Raw Normal View History

2021-09-10 12:44:42 +00:00
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
2020-11-25 18:30:52 +00:00
# Contributor: loqs
# Contributor: Mark E.A.
2016-03-17 12:22:57 +00:00
# Contributor: Gergely Imreh <imrehg@gmail.com>
2016-02-03 00:58:10 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2020-11-25 18:30:52 +00:00
# - remove -msse2 from CMakeLists
2016-02-03 00:58:10 +00:00
pkgname=io
2020-11-25 18:30:52 +00:00
pkgver=2017.09.06
2024-03-12 12:49:04 +00:00
pkgrel=10
2016-02-03 00:58:10 +00:00
pkgdesc='IO programming language'
2020-11-25 18:30:52 +00:00
arch=(x86_64)
2023-04-03 23:08:03 +00:00
url='https://iolanguage.org/'
2020-11-25 18:30:52 +00:00
license=(BSD)
2024-03-12 12:49:04 +00:00
depends=(freeglut freetype2 libedit libevent libjpeg-turbo libpng libsndfile libtheora libtiff libxml2 libxmu lzo mariadb-libs pcre2 python sqlite util-linux yajl)
2020-11-25 18:30:52 +00:00
makedepends=(cmake git)
options=(!makeflags)
source=("git+https://github.com/stevedekorte/io#commit=b8a18fc199758ed09cd2f199a9bc821f6821072a" # tag: 2017.09.06
'noexec.patch::https://github.com/IoLanguage/io/commit/5b88e9769c1d4629e9a4a01c78b57c0d80c7a70c.patch')
2021-09-10 12:44:42 +00:00
b2sums=('SKIP'
'bf7bf212349a88d707ca99fff48dfc08b0b4fbdc91a64a090e53c388e161f210d42e1dff590c5cda022c0519f2469ad9be5d4788c226632ad3d516389782912d')
2016-02-03 00:58:10 +00:00
prepare() {
2021-09-10 12:44:42 +00:00
cd $pkgname/libs/iovm/source
sed -ri "s,20[0-9]+,$pkgver," IoVersion.h
2024-03-12 12:49:04 +00:00
sed -i 's,sys/sys,linux/sys,' IoSystem.c
2021-09-10 14:04:03 +00:00
sed -i '/-msse2/d' $srcdir/$pkgname/CMakeLists.txt
2016-02-03 00:58:10 +00:00
}
build() {
2022-01-30 15:56:29 +00:00
cmake \
2020-11-25 18:30:52 +00:00
-B build \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/usr \
2022-01-30 15:56:29 +00:00
-D CMAKE_SKIP_RPATH=1 \
-S $pkgname
# make is used instead of ninja, because ninja results in errors,
# even with '-w dupbuild=warn' and/or -w 'phonycycle=warn'
2020-11-25 18:30:52 +00:00
make -C build
2016-02-03 00:58:10 +00:00
}
package() {
2017-06-09 18:11:23 +00:00
DESTDIR="$pkgdir" make -C build install
2016-02-03 00:58:10 +00:00
2020-11-25 18:30:52 +00:00
# The dynamically linked io executable does not work, see FS#68674. The error is:
# Relink `/usr/lib/libbasekit.so' with `/usr/lib/libm.so.6' for IFUNC symbol `ceil'
# Use the statically linked executable instead.
mv -f "$pkgdir/usr/bin/io_static" "$pkgdir/usr/bin/io"
2024-03-12 12:49:04 +00:00
# In the next release of io, it will just be "$pkgname/LICENSE.txt"
2020-11-25 18:30:52 +00:00
install -Dm644 $pkgname/license/bsd_license.txt \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}