Add PKGBUILD for packaging for archlinux, add gitignore

This commit is contained in:
leafee98 2023-09-14 12:30:44 +08:00
parent dcf261e622
commit d658bbab9c
2 changed files with 30 additions and 0 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
/pkg
/src
/proxyenv*.pkg.tar.*

27
PKGBUILD Normal file
View file

@ -0,0 +1,27 @@
pkgname='proxyenv-git'
pkgver=0
pkgrel=1
arch=('any')
url="https://git.leafee98.com/leafee98/proxyenv"
pkgdesc="A cross-platform, GPU-accelerated terminal emulator"
license=('MIT')
depends=('bash')
source=(
"proxyenv"
"proxyenv.conf"
)
sha256sums=(
'SKIP'
'SKIP'
)
pkgver() {
git describe --tags --long | cut -c 2- | sed -e 's/-/./g'
}
package() {
install -Dm 755 "${srcdir}/proxyenv" "${pkgdir}/usr/bin/proxyenv"
install -Dm 644 "${srcdir}/proxyenv.conf" "${pkgdir}/etc/proxyenv.conf"
}