summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaura Hausmann2023-11-17 01:02:10 +0100
committerLaura Hausmann2023-11-17 01:02:58 +0100
commit1c7e62af8153fc6af64d8fa8fb06bf5eb0078649 (patch)
treea2d31d44a127f3bc86500fb46662eff3531c820f
downloadaur-1c7e62af8153fc6af64d8fa8fb06bf5eb0078649.tar.gz
Initial release
-rw-r--r--.SRCINFO24
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD40
-rw-r--r--iceshrimp.hook9
-rw-r--r--iceshrimp.install7
5 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..c6a9cccb4f49
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = iceshrimp-bin
+ pkgdesc = YAMF (Yet another Misskey fork) bringing you no-nonsense fixes, features & improvements you actually want since 2023
+ pkgver = v2023.11.2
+ pkgrel = 3
+ url = https://iceshrimp.dev/iceshrimp/iceshrimp
+ install = iceshrimp.install
+ arch = x86_64
+ license = AGPL3
+ depends = nodejs
+ depends = redis
+ depends = postgresql
+ optdepends = ffmpeg: for video transcoding
+ optdepends = sonic: efficient full text search backend
+ optdepends = meilisearch: feature-rich full text search backend
+ provides = iceshrimp
+ conflicts = iceshrimp
+ options = !strip
+ backup = etc/iceshrimp/configuration.yml
+ source = https://repo.iceshrimp.dev/archlinux/iceshrimp/os/x86_64/iceshrimp-v2023.11.2-3-x86_64.pkg.tar.zst
+ source = iceshrimp.hook
+ sha512sums = 5ea4c415c38d0abaebfb2886a832771e02a9eba324b503e92bc9adf1e29c7c07e70eeeb4598daa3f7eb0bfe931cc0fda4c547340997d2a961438bc962d28aa6b
+ sha512sums = 91c456bda5c14b01cbf770a2e9e57425ac5e82226799d39e11cc6e83b219a0559eeed8693c5eb051fffb28cdd23d4682ee40f46372117880aeeddb00ecb8726f
+
+pkgname = iceshrimp-bin
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..9ab9bee22050
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/iceshrimp
+/pkg
+/src
+*.tar.zst
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..e578d2000d0e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: zotan <aur@zotan.email>
+
+pkgname=iceshrimp-bin
+pkgver=v2023.11.2
+pkgrel=3
+pkgdesc="YAMF (Yet another Misskey fork) bringing you no-nonsense fixes, features & improvements you actually want since 2023"
+arch=(x86_64)
+url="https://iceshrimp.dev/iceshrimp/iceshrimp"
+license=(AGPL3)
+
+conflicts=(iceshrimp)
+provides=(iceshrimp)
+
+depends=(nodejs redis postgresql)
+optdepends=(
+ "ffmpeg: for video transcoding"
+ "sonic: efficient full text search backend"
+ "meilisearch: feature-rich full text search backend"
+)
+
+backup=("etc/iceshrimp/configuration.yml")
+
+install="iceshrimp.install"
+
+source=(
+ "https://repo.iceshrimp.dev/archlinux/iceshrimp/os/x86_64/iceshrimp-${pkgver}-${pkgrel}-x86_64.pkg.tar.zst"
+ "iceshrimp.hook"
+)
+
+sha512sums=('5ea4c415c38d0abaebfb2886a832771e02a9eba324b503e92bc9adf1e29c7c07e70eeeb4598daa3f7eb0bfe931cc0fda4c547340997d2a961438bc962d28aa6b'
+ '91c456bda5c14b01cbf770a2e9e57425ac5e82226799d39e11cc6e83b219a0559eeed8693c5eb051fffb28cdd23d4682ee40f46372117880aeeddb00ecb8726f')
+
+package() {
+ cp -dpTr --no-preserve=ownership "${srcdir}/" "${pkgdir}"
+ rm -f "${pkgdir}"/.{BUILDINFO,INSTALL,MTREE,PKGINFO}
+
+ install -Dm 644 "${srcdir}/iceshrimp.hook" "${pkgdir}/usr/share/libalpm/hooks/iceshrimp.hook"
+}
+
+options=(!strip)
diff --git a/iceshrimp.hook b/iceshrimp.hook
new file mode 100644
index 000000000000..c5cd8db0e159
--- /dev/null
+++ b/iceshrimp.hook
@@ -0,0 +1,9 @@
+[Trigger]
+Type = Package
+Operation = Upgrade
+Target = iceshrimp-bin
+
+[Action]
+Description = Restarting iceshrimp daemon...
+When = PostTransaction
+Exec = /bin/bash -c '/usr/bin/systemctl is-active iceshrimp.service -q && /usr/bin/systemctl restart iceshrimp.service || /usr/bin/true'
diff --git a/iceshrimp.install b/iceshrimp.install
new file mode 100644
index 000000000000..dd76abe36eb0
--- /dev/null
+++ b/iceshrimp.install
@@ -0,0 +1,7 @@
+post_install() {
+ echo
+ echo -e "--- Iceshrimp post-installation instructions ---"
+ echo -e "Please adjust configuration in \e[1;32m/etc/iceshrimp/configuration.yml\e[0m before starting the service"
+ echo -e "Should you be migrating from a non-package install, please copy the contents of the \e[1;34mfiles\e[0m folder into \e[1;34m/var/lib/iceshrimp/files\e[0m and run \e[1;35msudo chown -R iceshrimp:iceshrimp /var/lib/iceshrimp/files\e[0m"
+ echo
+}