diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7d0c36e --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +#PKGBUILD + +.BUILDINFO +.INSTALL +.MTREE +.PKGINFO +**/pkg/ +**/src/ +*.zst +*.sig +*.deb +*.gz diff --git a/LICENSE b/LICENSE index 7a3094a..d6a0885 100644 --- a/LICENSE +++ b/LICENSE @@ -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 + Copyright (C) 2022 Xiufeng Guo -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. \ No newline at end of file diff --git a/README.md b/README.md index 9ab69d4..371c3e0 100644 --- a/README.md +++ b/README.md @@ -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. +``` \ No newline at end of file diff --git a/repo/nali-go-bin/PKGBUILD b/repo/nali-go-bin/PKGBUILD new file mode 100644 index 0000000..9a96c7c --- /dev/null +++ b/repo/nali-go-bin/PKGBUILD @@ -0,0 +1,20 @@ +# Maintainer: Xiufeng Guo +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" +} diff --git a/repo/synergy1-bin/PKGBUILD b/repo/synergy1-bin/PKGBUILD new file mode 100644 index 0000000..53be7e4 --- /dev/null +++ b/repo/synergy1-bin/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: Catriel Müller +# Maintainer: Xiufeng Guo +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" +} diff --git a/repo/synergy1-bin/synergy1-bin.install b/repo/synergy1-bin/synergy1-bin.install new file mode 100644 index 0000000..a3ff5b6 --- /dev/null +++ b/repo/synergy1-bin/synergy1-bin.install @@ -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 +}