diff options
author | Niels Huylebroeck | 2022-09-22 11:30:09 +0200 |
---|---|---|
committer | Niels Huylebroeck | 2022-09-22 11:48:59 +0200 |
commit | 4c829be3e3a4ec88245a9bd865a43d5b82b71530 (patch) | |
tree | 56f5ca0f8366557f5b391e870cdd1960db9416cb | |
download | aur-4c829be3e3a4ec88245a9bd865a43d5b82b71530.tar.gz |
r1 PKGBUILD with patch
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 47 | ||||
-rw-r--r-- | data_files.patch | 17 |
4 files changed, 90 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7ad8f072aeb1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = sway-input-config-git + pkgdesc = Sway Input Configurator + pkgver = r3.db2708e + pkgrel = 1 + url = https://github.com/Sunderland93/sway-input-config + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = python-setuptools + depends = qt5-wayland + depends = pyside2 + depends = python-i3ipc + depends = sway + provides = sway-input-config + conflicts = sway-input-config + source = sway-input-config::git+https://github.com/Sunderland93/sway-input-config.git#branch=master + source = data_files.patch + sha256sums = SKIP + sha256sums = 3f969a09be48e8c288039c41400eb9397a24ea3b08402f6f5e8c4b52d312b96a + +pkgname = sway-input-config-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..42fd55091bf2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +src/ +pkg/ +sway-input-config/ +sway-input-config-git* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f733e0be05cf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Niels Huylebroeck <arch@nightwalkers.be> +pkgname=sway-input-config-git +_pkgname=sway-input-config +pkgver=r3.db2708e +pkgrel=1 +license=("GPL3") +pkgdesc="Sway Input Configurator" +makedepends=( + 'git' + 'python-setuptools' +) +depends=( + "qt5-wayland" "pyside2" "python-i3ipc" "sway" +) + +arch=("i686" "x86_64") +url="https://github.com/Sunderland93/sway-input-config" +source=( + "${pkgname%-*}::git+https://github.com/Sunderland93/sway-input-config.git#branch=master" + "data_files.patch" +) +sha256sums=( + "SKIP" + "3f969a09be48e8c288039c41400eb9397a24ea3b08402f6f5e8c4b52d312b96a" +) +provides=("sway-input-config") +conflicts=("sway-input-config") + +pkgver() { + cd "${srcdir}/${_pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "${srcdir}/${_pkgname}" + git apply ${srcdir}/data_files.patch +} + +build() { + cd "${srcdir}/${_pkgname}" + python setup.py build +} + +package() { + cd "${srcdir}/${_pkgname}" + python setup.py install --skip-build --optimize 1 --root="${pkgdir}" +} diff --git a/data_files.patch b/data_files.patch new file mode 100644 index 000000000000..b2c35620ad13 --- /dev/null +++ b/data_files.patch @@ -0,0 +1,17 @@ +diff --git a/setup.py b/setup.py +index 40b2b26..b140ece 100755 +--- a/setup.py ++++ b/setup.py +@@ -10,8 +10,11 @@ setup( + author_email='samoilov.lex@gmail.com', + url='https://github.com/Sunderland93/sway-input-config', + packages=find_packages(), +- include_package_data=True, + package_data={"": ["data/*"]}, ++ data_files=[ ++ ('share/applications', ['sway-input-config.desktop']), ++ ('share/pixmaps', ['sway-input-config.svg']), ++ ], + install_requires=[], + entry_points={ + 'gui_scripts': [ |