Skip to content

Commit ae4dde4

Browse files
committed
chore: updating version 2.16.1
1 parent d69b838 commit ae4dde4

File tree

5 files changed

+50
-83
lines changed

5 files changed

+50
-83
lines changed

.SRCINFO

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
pkgbase = code-server
2-
pkgdesc = VS Code in the browser
3-
pkgver = 4.99.3
4-
pkgrel = 1
5-
url = https://github.com/coder/code-server
1+
pkgbase = coder-bin
2+
pkgdesc = Remote development environments on your infrastructure provisioned with Terraform
3+
pkgver = 2.16.1
4+
pkgrel = 2
5+
url = https://coder.com
66
arch = x86_64
77
arch = aarch64
8-
license = MIT
9-
depends = glibc
10-
source = code-server-4.99.3-user.service::https://raw.githubusercontent.com/cdr/code-server/v4.99.3/ci/build/code-server-user.service
11-
source = code-server-4.99.3@.service::https://raw.githubusercontent.com/cdr/code-server/v4.99.3/ci/build/code-server@.service
12-
sha512sums = 7040df09c7404a56dbbb32e09d04ead3b622773520feae19c6710656cef46ca5d79b1972bfebb931e309e495d041b9938cd6a51c39fc0f8f6133dfe711be9280
13-
sha512sums = ab8e679c05f6184f163dccf0651e8c1fac22a29ae583148f8c93b6930ece27cdff45a48b425e8b15b8c8ce749015680a3ae8225b7e8037979ff3d228f396f629
14-
source_x86_64 = https://github.com/coder/code-server/releases/download/v4.99.3/code-server-4.99.3-linux-amd64.tar.gz
15-
sha512sums_x86_64 = d0ff95fc18ac0ecd78658df53d81402807df541184ad548eaa4bb74c7bc1f9f9ddac2cea6dec5e7c8c72f52a81043a1f95033c8c158b96c84a3fc7a33ae41191
16-
source_aarch64 = https://github.com/coder/code-server/releases/download/v4.99.3/code-server-4.99.3-linux-arm64.tar.gz
17-
sha512sums_aarch64 = cb28cf9f6c9ac4a270e94ce8bcab71a2d91b0fcc6cf40ecde4d17873a7f0a10dbf9e2f662d59d65c481e3fb1f78ebea31219a05d83c625a140c07d58a521abfd
8+
arch = armv7h
9+
license = Proprietary
10+
license = AGPL3
11+
provides = coder
12+
provides = coder-client
13+
source_x86_64 = https://github.com/coder/coder/releases/download/v2.16.1/coder_2.16.1_linux_amd64.tar.gz
14+
sha256sums_x86_64 = 32ffb8c45ba2973194e1c70385cf97864e7e70df22c40f00a62e72389b50db16
15+
source_aarch64 = https://github.com/coder/coder/releases/download/v2.16.1/coder_2.16.1_linux_arm64.tar.gz
16+
sha256sums_aarch64 = 1f34bb34a9da825cdcb4414b9e630357a3f804f34eaaa0af4f563a88effe6b6b
17+
source_armv7h = https://github.com/coder/coder/releases/download/v2.16.1/coder_2.16.1_linux_armv7.tar.gz
18+
sha256sums_armv7h = 513b78e341a5062cf281dc8bc501a36101857767e9ba161f4197a0b31d542a5f
1819

19-
pkgname = code-server
20+
pkgname = coder-bin

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Publish AUR package
2020
uses: KSXGitHub/github-actions-deploy-aur@v2.5.0
2121
with:
22-
pkgname: code-server
22+
pkgname: coder-bin
2323
pkgbuild: ./PKGBUILD
2424
commit_username: ${{ secrets.AUR_USERNAME }}
2525
commit_email: ${{ secrets.AUR_EMAIL }}

PKGBUILD

Lines changed: 19 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,23 @@
1-
# Maintainer: Colin Adler <colin@coder.com>
2-
# Maintainer: Asher <ash@coder.com>
3-
# Maintainer: cdrci <joe+cdrci@coder.com>
4-
# Contributor: Joe Previte <joe@coder.com>
5-
# Contributor: Teffen Ellis <teffen@coder.com>
6-
# Contributor: Anmol <anmol@coder.com>
1+
# Maintainer: Phorcys <aur@phorcys.net>
2+
pkgname=coder-bin
3+
pkgver=2.16.1
4+
pkgrel=2
5+
pkgdesc='Remote development environments on your infrastructure provisioned with Terraform'
6+
arch=('x86_64' 'aarch64' 'armv7h')
7+
url='https://coder.com'
8+
license=('Proprietary' 'AGPL3')
9+
provides=('coder' 'coder-client')
10+
conflicts=()
711

8-
pkgname=code-server
9-
pkgver=4.99.3
10-
pkgrel=1
11-
pkgdesc="VS Code in the browser"
12-
arch=("x86_64" "aarch64")
13-
url="https://github.com/coder/code-server"
14-
license=(MIT)
15-
depends=(glibc)
16-
source=(
17-
"$pkgname-$pkgver-user.service::https://raw.githubusercontent.com/cdr/code-server/v$pkgver/ci/build/code-server-user.service"
18-
"$pkgname-$pkgver@.service::https://raw.githubusercontent.com/cdr/code-server/v$pkgver/ci/build/code-server@.service"
19-
)
20-
release_name="code-server-${pkgver}-linux"
21-
source_x86_64=(
22-
"${url}/releases/download/v$pkgver/$release_name-amd64.tar.gz"
23-
)
24-
source_aarch64=(
25-
"${url}/releases/download/v$pkgver/$release_name-arm64.tar.gz"
26-
)
27-
sha512sums=('7040df09c7404a56dbbb32e09d04ead3b622773520feae19c6710656cef46ca5d79b1972bfebb931e309e495d041b9938cd6a51c39fc0f8f6133dfe711be9280'
28-
'ab8e679c05f6184f163dccf0651e8c1fac22a29ae583148f8c93b6930ece27cdff45a48b425e8b15b8c8ce749015680a3ae8225b7e8037979ff3d228f396f629')
29-
sha512sums_x86_64=('d0ff95fc18ac0ecd78658df53d81402807df541184ad548eaa4bb74c7bc1f9f9ddac2cea6dec5e7c8c72f52a81043a1f95033c8c158b96c84a3fc7a33ae41191')
30-
sha512sums_aarch64=('cb28cf9f6c9ac4a270e94ce8bcab71a2d91b0fcc6cf40ecde4d17873a7f0a10dbf9e2f662d59d65c481e3fb1f78ebea31219a05d83c625a140c07d58a521abfd')
31-
package() {
32-
if [[ ${CARCH} == x86_64 ]]; then
33-
release_name+=-amd64
34-
else
35-
release_name+=-arm64
36-
fi
37-
38-
mkdir -p "$pkgdir/usr/lib"
39-
cp -a "$release_name" "$pkgdir/usr/lib/$pkgname"
40-
41-
mkdir -p "$pkgdir/usr/bin"
42-
ln -s "/usr/lib/$pkgname/bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
12+
source_x86_64=("https://github.com/coder/coder/releases/download/v${pkgver}/coder_${pkgver}_linux_amd64.tar.gz")
13+
source_aarch64=("https://github.com/coder/coder/releases/download/v${pkgver}/coder_${pkgver}_linux_arm64.tar.gz")
14+
source_armv7h=("https://github.com/coder/coder/releases/download/v${pkgver}/coder_${pkgver}_linux_armv7.tar.gz")
4315

44-
mkdir -p "$pkgdir/usr/lib/systemd/system"
45-
cp -aL "$pkgname-$pkgver@.service" "$pkgdir/usr/lib/systemd/system/$pkgname@.service"
46-
47-
mkdir -p "$pkgdir/usr/lib/systemd/user"
48-
cp -aL "$pkgname-$pkgver-user.service" "$pkgdir/usr/lib/systemd/user/$pkgname.service"
16+
package() {
17+
cd "$srcdir"
4918

50-
mkdir -p "$pkgdir/usr/share/licenses"
51-
cp -a "$release_name/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
19+
install -Dm755 coder "${pkgdir}/usr/bin/coder"
5220
}
21+
sha256sums_x86_64=('32ffb8c45ba2973194e1c70385cf97864e7e70df22c40f00a62e72389b50db16')
22+
sha256sums_aarch64=('1f34bb34a9da825cdcb4414b9e630357a3f804f34eaaa0af4f563a88effe6b6b')
23+
sha256sums_armv7h=('513b78e341a5062cf281dc8bc501a36101857767e9ba161f4197a0b31d542a5f')

README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# code-server-aur
1+
# coder-aur
22

3-
Arch User Repository package for [code-server](https://github.com/cdr/code-server).
3+
Arch User Repository package for [coder](https://github.com/coder/coder).
44
Feel free to file issues here or comment on the AUR page.
55

6-
Previously maintained by [KSXGitHub](https://github.com/KSXGitHub)
6+
Forked from [code-server-aur](https://github.com/coder/code-server-aur) which was previously maintained by [KSXGitHub](https://github.com/KSXGitHub)
77

88
## Updating
99

1010
Make sure you run these commands on an Arch machine. If you're a Coder employee, we suggest using your dogfooding environment.
1111

12-
1. Run `sh update.sh` and type in the new version
12+
1. Run `./update.sh` and type in the new version
1313
1. Push changes to GitHub: `git push`
1414
1. Push changes to `aur`: `git push aur`
15-
- If you don't have this set up, run `git remote add aur ssh://aur@aur.archlinux.org/code-server.git`
15+
- If you don't have this set up, run `git remote add aur ssh://aur@aur.archlinux.org/coder-bin.git`
1616
- Run `git push aur`
1717

1818
### SSH Key
@@ -41,8 +41,3 @@ If a new maintainer joins the project, please add them to the top of `PKGBUILD`.
4141
### Removing Old Maintainers
4242

4343
Instead of removing them completely, change their title from "Maintainer" to "Contributor".
44-
45-
### Automated publishing
46-
47-
@jsjoeio created an account under `cdrci` for automating publishing the AUR
48-
package. If you need these credentials, please ask him.

update.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ main() {
2424

2525
ls
2626
grep "pkgver=" PKGBUILD
27-
CODE_SERVER_CURRENT_VERSION=$(grep "pkgver=" PKGBUILD | cut -d "=" -f2-)
28-
echo "Current version: ${CODE_SERVER_CURRENT_VERSION}"
27+
CODER_CURRENT_VERSION=$(grep "pkgver=" PKGBUILD | cut -d "=" -f2-)
28+
echo "Current version: ${CODER_CURRENT_VERSION}"
2929

30-
CODE_SERVER_VERSION_TO_UPDATE=${1:-""}
30+
CODER_VERSION_TO_UPDATE=${1:-""}
3131

32-
if [ "$CODE_SERVER_VERSION_TO_UPDATE" == "" ]; then
32+
if [ "$CODER_VERSION_TO_UPDATE" == "" ]; then
3333
echo "Please call this script with the version to update to."
3434
echo "i.e. 4.5.2"
3535
exit 1
3636
fi
3737

38-
echo -e "Great! We'll update to $CODE_SERVER_VERSION_TO_UPDATE\n"
38+
echo -e "Great! We'll update to $CODER_VERSION_TO_UPDATE\n"
3939

40-
sed -i "s/$CODE_SERVER_CURRENT_VERSION/$CODE_SERVER_VERSION_TO_UPDATE/" PKGBUILD
40+
sed -i "s/$CODER_CURRENT_VERSION/$CODER_VERSION_TO_UPDATE/" PKGBUILD
4141

4242
updpkgsums
4343

@@ -46,9 +46,9 @@ main() {
4646
echo "All updated!"
4747
echo "Committing and pushing to GitHub"
4848
git add .
49-
git commit -m "chore: updating version $CODE_SERVER_VERSION_TO_UPDATE"
49+
git commit -m "chore: updating version $CODER_VERSION_TO_UPDATE"
5050
git push
51-
echo "Action requried: make sure to push to aur: git push aur"
51+
echo "Action required: make sure to push to aur: git push aur"
5252
}
5353

5454
main "$@"

0 commit comments

Comments
 (0)