Add nali-go-bin and synergy

This commit is contained in:
Xiufeng Guo 2022-06-29 22:39:36 +00:00
parent b24ab8868c
commit a397f4a743
Signed by: showfom
GPG Key ID: 29A7777777777777
6 changed files with 87 additions and 8 deletions

12
.gitignore vendored Normal file
View File

@ -0,0 +1,12 @@
#PKGBUILD
.BUILDINFO
.INSTALL
.MTREE
.PKGINFO
**/pkg/
**/src/
*.zst
*.sig
*.deb
*.gz

16
LICENSE
View File

@ -1,11 +1,13 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 3, JUNE 2022
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Copyright (C) 2022 Xiufeng Guo <i@m.ac>
Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
0. You just DO WHAT THE FUCK YOU WANT TO.

View File

@ -1,2 +1,13 @@
# archlinux
## Arch Linux
Some configurations and PKGBUILD shits here.
## PKGBUILD
## Terms
```
No Warranty. The Software is being delivered to you “AS IS” and with ALL FAULTS.
```

20
repo/nali-go-bin/PKGBUILD Normal file
View File

@ -0,0 +1,20 @@
# Maintainer: Xiufeng Guo <i@m.ac>
pkgname=nali-go-bin
pkgver=0.4.2
pkgrel=1
pkgdesc='An offline tool for querying IP geographic information and CDN provider.'
arch=('x86_64')
url="https://github.com/zu1k/nali"
license=('MIT')
provides=('nali-go')
conflicts=('nali-go')
source=("https://github.com/zu1k/nali/releases/download/v$pkgver/nali-linux-amd64-v$pkgver.gz")
sha256sums=('eaeba312b264173188934a126119399d0d85a930195f976a235b713ec17d7ff5')
package() {
# Move package contents to /usr/bin/nali
cd "${srcdir}"
chmod +x "nali-linux-amd64-v$pkgver"
install -Dm755 "nali-linux-amd64-v$pkgver" "${pkgdir}/usr/bin/nali"
}

View File

@ -0,0 +1,21 @@
# Maintainer: Catriel Müller <catriel at gmail dot com>
# Maintainer: Xiufeng Guo <i@m.ac>
pkgname=synergy1-bin
pkgver=1.14.4
pkgrel=1
pkgdesc="Keyboard and mouse sharing solution. Synergy allows you to share one mouse and keyboard between multiple computers. Work seamlessly across Windows, macOS and Linux."
arch=('x86_64')
url="https://symless.com/synergy"
license=('unknown')
depends=('avahi>=0.6.16' 'gcc-libs>=5.2' 'glibc>=2.14' 'hicolor-icon-theme' 'libx11>=1.2.99.901' 'libxext' 'libxi>=1.2.99.4' 'libxtst' 'openssl>=1.1.0' 'qt5-base>=5.12.2')
conflicts=('synergy')
options=('!strip' '!emptydirs')
install=${pkgname}.install
source_x86_64=("https://storage.xiufeng.de/archlinux/bin/synergy_1.14.4-stable.ad7273eb_debian11_amd64.deb")
sha512sums_x86_64=('cedafa994e5d292ac7a52d43ebe124976aa7446e7a573878ec490c3171b7691a643cb889dd5b6c7da3c2a4bd7ab2ebffa020a6cdd6d1e8a09cbc885b55af4fc7')
package(){
# Extract package data
tar xf data.tar.xz -C "${pkgdir}"
install -D -m644 "${pkgdir}/usr/share/doc/synergy/copyright" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

View File

@ -0,0 +1,13 @@
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
}