diff --git a/CMakeLists.txt b/CMakeLists.txt index 6aecb39..1ace832 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,3 +21,5 @@ add_executable(${PROJECT_NAME} src/main.cc src/mainwindow.cc src/vault.cc ${UI_H target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${BOTAN_INCLUDE_DIRS}) target_link_libraries(${PROJECT_NAME} Qt6::Core Qt6::Widgets ${BOTAN_LIBRARIES}) + +install(TARGETS ${PROJECT_NAME} DESTINATION bin) diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..e596256 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,22 @@ +pkgname=dull +pkgver=0.1 +pkgrel=1 +pkgdesc="Desktop app for securely storing sensitive files" +arch=('x86_64') +url="https://github.com/antpiasecki/dull" +depends=('qt6-base' 'botan') +makedepends=('cmake') +source=("${url}/archive/refs/tags/${pkgver}.tar.gz") +sha256sums=('SKIP') +DEBUGPKG=() + +build() { + cd "${pkgname}-${pkgver}" + cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr + cmake --build build -j$(nproc) +} + +package() { + cd "${pkgname}-${pkgver}/build" + make DESTDIR="${pkgdir}" install +} \ No newline at end of file diff --git a/README.md b/README.md index c4532e0..6309e48 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,12 @@ cmake --build build -j $(nproc) ./build/dull ``` +### Arch +``` +sudo pacman -S base-devel +makepkg -si +``` + ### Windows / MSYS2 ``` pacman -S --needed mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-qt6-base mingw-w64-x86_64-qt6-tools mingw-w64-x86_64-libbotan