Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:user5664536
arc_unpacker
PKGBUILD
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PKGBUILD of Package arc_unpacker
pkgname=arc_unpacker-git _pkgname=arc_unpacker pkgver=r2428.456834ec pkgrel=3 pkgdesc="CLI tool for extracting images and sounds from visual novels." arch=(x86_64) url="https://github.com/vn-tools/arc_unpacker" license=('GPL') depends=('boost-libs' 'libpng' 'libjpeg-turbo' 'openssl') optdepends=('libwebp') makedepends=('boost' 'cmake' mold clang git ninja) provides=('arc_unpacker-git' 'arc_unpacker') conflicts=('arc_unpacker') source=("${_pkgname}-$pkgver.tar" 'https://raw.githubusercontent.com/catchorg/Catch2/v2.13.8/single_include/catch2/catch.hpp' 'etc.patch' 'include_limits.patch' 'include_cstdint.patch' 'failing_tests.patch') sha256sums=('SKIP' 'f5adf6a4c3237920421d51a11112904084043b015acf2c9058e8f36b92ab2921' 'e8c02f338aca81df79f6d5c0e302322abd776b2aeb36eb0a57ee93335c0da216' '83c82ea28e61b8acb296c33a1a8336c8ac54163b3fa0fd7edd57cd35d72bd671' '91e33edbefc17afd2613d9b571d558f0df244dfb6c77d51c103ed3d72c488ec3' '61244eb2ec5ef7ccfb0a0532d51c256d2e99304098b143522f2bee8da3b8eac0') prepare() { mv "$srcdir/${_pkgname}-$pkgver" "$srcdir/${_pkgname}" cd "$_pkgname" # fix sources path sed -i "s|\/\.\.\/|\/|g" CMakeLists.txt # fix etc/ path git apply "$srcdir/etc.patch" # fix includes for p in "$srcdir"/include_*.patch; do git apply "$p" done # fix tests cp "$srcdir/catch.hpp" tests/test_support/catch.h # disable failing tests git apply "$srcdir/failing_tests.patch" } build() { cd "$_pkgname" export CC='clang' CXX='clang++' LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now,-fuse-ld=mold" cmake -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr/bin/ \ -DCMAKE_BUILD_TYPE=Release ninja -j$(nproc) } package() { cd "$srcdir/$_pkgname" install -D -m 755 ${_pkgname} ${pkgdir}/usr/bin/${_pkgname} mkdir -p ${pkgdir}/usr/share/${_pkgname} cp -r etc ${pkgdir}/usr/share/${_pkgname} }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor