blob: ff55001ec1dd6c16729eb3e33343b2c29c2abac9 (
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
|
# Maintainer: George Thomas <georgefsthomas@gmail.com>
pkgname="wxc"
pkgver="1.0.0.1" # TODO keep this in sync? https://wiki.archlinux.org/title/VCS_package_guidelines#The_pkgver()_function
pkgrel="1"
pkgdesc="A C wrapper around the wxWidgets C++ library"
url="https://codeberg.org/wxHaskell/wxHaskell"
arch=("x86_64")
depends=("gcc" "wxwidgets")
makedepends=("git" "cmake")
license=("custom:wxWindows")
source=("git+${url}#commit=d4f373020f11b00e96c78c27d4af9d45d8552a15") # TODO only clone `wxc` subdir and `license.txt`?
sha512sums=("SKIP")
package() {
(cd wxHaskell/wxc && ./generate-version-header.sh)
cmake -BwxHaskell/build -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" wxHaskell/wxc
(cd wxHaskell/build && make install)
install -Dm644 wxHaskell/license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# TODO bit of a hack
# wxc's current build system bakes in absolute paths earlier than Arch would like
# so we just replace the whole first line
# TODO we still see a warning, but can't find why and see no issues in practice (maybe just due to relative symlink?):
# ==> WARNING: Package contains reference to $srcdir
# usr/lib/libwxc.so.1.0.0.1
sed -i "1s/.*/prefix=\/usr/" "${pkgdir}/usr/lib/pkgconfig/wxc.pc"
}
|