blob: 31461a752fa8913cd2c6bd6676dbb134781c2c02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: mar77i <mar77i at protonmail dot ch>
pkgname=switcher-git
pkgver=r7.c9d4705
pkgrel=1
pkgdesc="Run SSH and HTTP(S) on the same port"
arch=('i686' 'x86_64')
url="https://github.com/jamescun/switcher"
license=('GPL')
groups=()
depends=()
makedepends=('git' 'gcc-go') # 'bzr', 'git', 'mercurial' or 'subversion'
source=('git+https://github.com/jamescun/switcher.git'
switcher.service
switcher.socket)
noextract=()
sha1sums=('SKIP'
'a8fe9ff7916611d5f042a3bf63c592b2baafec9e'
'b2f36de929c1131e41c8e29037c51bedbbfb82de')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-git}"
make
}
package() {
cd "$srcdir/${pkgname%-git}"
install -Dm755 switcher "${pkgdir}/usr/bin/switcher"
mkdir -p "${pkgdir}/usr/lib/systemd/system"
install -m644 ../switcher.{socket,service} "${pkgdir}/usr/lib/systemd/system"
}
|