Added PKGBUILD.

This commit is contained in:
2025-09-10 11:36:33 +02:00
parent 9fc3b3c790
commit 6b5d498ab5
3 changed files with 28 additions and 6 deletions

2
.gitignore vendored
View File

@ -1,5 +1,7 @@
bin/
.cache/
pkg/
*.tar.zst
CMakeLists.txt.user
CMakeCache.txt

View File

@ -19,9 +19,3 @@ set(CMAKE_CXX_FLAGS_RELEASE "-O3")
set(CMAKE_CXX_STANDARD 23)
add_subdirectory(src)
add_custom_target(run
COMMAND autotablet
DEPENDS autotablet
WORKING_DIRECTORY src
)

26
PKGBUILD Normal file
View File

@ -0,0 +1,26 @@
# Maintainer: s3rius <win10@list.com>
pkgname=auto-tablet
pkgver=0.0.1
pkgrel=2
pkgdesc="Automatic tablet mode"
arch=('i686' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
url="https://gitea.le-memese.com/s3rius/auto-tablet"
license=('GPL')
options=(!emptydirs)
depends=(libinput)
makedepends=(
'cmake'
'make'
'clang'
)
build() {
cd "$startdir/"
cmake .
make install
}
package() {
install -Dm 755 "$startdir/bin/autotablet" -t "$pkgdir/usr/bin"
}