Skip to content

Commit 5dd3a97

Browse files
committed
fixes
1 parent a0ceb0a commit 5dd3a97

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
2525
matrix:
2626
os: [ubuntu-latest, windows-latest]
27-
build_type: [RelWithDebInfo]
27+
build_type: [Release]
2828
c_compiler: [gcc, clang, cl]
2929
include:
3030
- os: windows-latest

PKGBUILD

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,27 @@ url="https://github.com/harmonytf/libuncso2"
77
license=(GPL-3.0-only)
88
makedepends=(cmake)
99
source=()
10+
_sourcedir="$pkgname"
1011

1112
prepare() {
1213
ln -snf "$startdir" "$srcdir"
1314
}
1415

1516
build() {
16-
cmake -B build -S "$pkgname" \
17+
cmake -B build -S "$_sourcedir" \
1718
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
1819
-DCMAKE_INSTALL_PREFIX=/usr \
1920
-Wno-dev
2021
cmake --build build
2122
}
2223

2324
check() {
24-
# TODO: Currently broken
25-
ctest --test-dir "$pkgname/build" --output-on-failure
25+
ctest --test-dir "$_sourcedir/build/tests" --build-config RelWithDebInfo --output-on-failure
2626
}
2727

2828
package() {
2929
DESTDIR="$pkgdir" cmake --install build
30+
install -Dm644 "$_sourcedir/COPYING" -t "$pkgdir/usr/share/licenses/$pkgname"
3031

3132
rm -rf "$pkgdir/usr/bin/cryptest"
3233
rm -rf "$pkgdir/usr/include/cryptopp"
@@ -36,5 +37,5 @@ package() {
3637
rm -rf "$pkgdir/usr/share/pkgconfig/cryptopp.pc"
3738

3839
rm -rf "$pkgdir/usr/bin"
39-
rm -rf "$pkgdir/usr/share"
40+
rm -rf "$pkgdir/usr/share/pkgconfig"
4041
}

0 commit comments

Comments
 (0)