blob: cedea169f0914132fa86cf47994f4552dd582247 (
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
55
56
57
|
# Maintainer: taotieren <admin@taotieren.com>
pkgbase=libosal
pkgname=libosal
pkgver=0.0.3
pkgrel=1
pkgdesc="libosal is an operating system abstraction layer Library. It's purpose is to write os-independent code for easy portability between different systems and architectures."
arch=($CARCH)
url="https://github.com/robert-burger/libosal"
license=('LGPL-3.0-only')
groups=()
provides=(${pkgname})
conflicts=(${pkgname})
replaces=()
depends=(glibc)
makedepends=(
# cmake
# ninja
pkgconf)
checkdepends=()
optdepends=()
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}-rev0.tar.gz")
sha256sums=('6c66cb58275f6e5deb1810853d08e713f19d4076e7ac33ac302bf8420c94729d')
options=()
build() {
cd "${srcdir}/${pkgname}-${pkgver}-rev0/"
autoreconf -is
./configure --prefix=/usr
make
# see:https://wiki.archlinux.org/title/CMake_package_guidelines
# gcc build
# cmake -DCMAKE_BUILD_TYPE=Release \
# cmake -DCMAKE_BUILD_TYPE=None \
# -DBUILD_FOR_PLATFORM="POSIX" \
# -DBUILD_SHARED_LIBS=ON \
# -DCMAKE_INSTALL_PREFIX=/usr \
# -DCMAKE_INSTALL_LIBDIR=lib \
# -DCMAKE_INSTALL_LIBEXECDIR=lib \
# -B build \
# -Wno-dev \
# -G Ninja
#
# ninja -C build
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}-rev0"
make check
}
package() {
# DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgname}-${pkgver}-rev0/build install
cd "${srcdir}/${pkgname}-${pkgver}-rev0"
make DESTDIR=${pkgdir} install
}
|