summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca5fa14e93a7eae99246ffdb7fa387c05aad8c4c (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
# Maintainer: Yassine Oudjana <y.oudjana@protonmail.com>

pkgname=derelict-util
_ver=3.0.0-beta.2
pkgver=${_ver//-/_}
pkgrel=1
pkgdesc="Cross-platform shared library loader and a number of utility modules used by the Derelict libraries."
arch=('x86_64')
url="https://github.com/DerelictOrg/DerelictUtil"
license=('Boost')
makedepends=('dub')
source=("https://github.com/DerelictOrg/DerelictUtil/archive/refs/tags/v$_ver.tar.gz")
sha256sums=('d6407725cc202121f56382df62e0997b4067dd05ccda7b387cef5dcddbd6c3c4')

build() {
	cd DerelictUtil-$_ver

	dub build
}

package() {
	cd DerelictUtil-$_ver

	install -Dm0755 -t "$pkgdir/usr/lib/" "lib/libDerelictUtil.a"
	mkdir -p "$pkgdir/usr/include/d/derelict/util"
	cp -R --no-dereference --preserve=mode,links "source/derelict/util" "$pkgdir/usr/include/d/derelict/"
}