summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsatcom8862021-03-02 19:34:06 +0100
committersatcom8862021-03-02 19:34:06 +0100
commit21324ff1aaf3eb61943cacaa648653685bff73d8 (patch)
tree6ed82d6fcf09a4b364c8f882d70afb12c54f3789
downloadaur-21324ff1aaf3eb61943cacaa648653685bff73d8.tar.gz
Initial, non functioning commit
-rw-r--r--.SRCINFO35
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD47
-rw-r--r--photoprism.service15
-rw-r--r--photoprism.service.env43
-rw-r--r--photoprism.sysusers1
-rw-r--r--photoprism.tmpfiles2
7 files changed, 147 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a51fdabd409
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,35 @@
+pkgbase = photoprism
+ pkgdesc = PhotoPrism is a privately hosted app for browsing, organizing, and sharing your photo collection
+ pkgver = 210222
+ pkgrel = 1
+ url = https://photoprism.app/
+ arch = x86_64
+ arch = armv6h
+ arch = armv7h
+ arch = aarch64
+ license = AGPL3
+ makedepends = go
+ makedepends = nodejs-webpack
+ makedepends = nodejs-webpack-cli
+ depends = ffmpeg
+ depends = tensorflow
+ depends = sqlite
+ conflicts = photoprism-git
+ source = photoprism-210222.tar.gz::https://github.com/photoprism/photoprism/archive/210222-ac5a9d5e.tar.gz
+ source = photoprism.service
+ source = photoprism.service.env
+ source = photoprism.sysusers
+ source = photoprism.tmpfiles
+ md5sums = 9b75ad73e3b07515d4d3ed0287d96b0f
+ md5sums = 09ad1555f1487cd5fb2e461e6b900e3d
+ md5sums = c164b0294295e0f23e482507bcf9fb1e
+ md5sums = c11fac89fe843b7342790511e98baca9
+ md5sums = b8a7591cde43436a3f27df108310badd
+ sha256sums = d959b8233ba405614670fe4e0011943fb93f1e7dff3a9dc9cef852e4d8b3e99b
+ sha256sums = 8a6c983cc9bd34fe5a576903b49d4ee9d15eef019ea22a9e63e6a00c04c8a43b
+ sha256sums = 1dfc9d8900e9437c12d2ffefd9e3b1eea5a90b3801ff61e45c6e23ea4c214e3b
+ sha256sums = 1ecfac0fb1c25794508063797295eef09b7a2ce23723fd8d52460d3fd6ad980f
+ sha256sums = 61b4e817aa621f54b871c5857a336af7d4f2e6da32645e37233aa938f324c4d2
+
+pkgname = photoprism
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..a138c3e9b24
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+src
+pkg
+
+*.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e42f91c4605
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: satcom886 <rostik.medved@gmail.com>
+pkgname=photoprism
+pkgver=210222
+_commit="ac5a9d5e"
+pkgrel=1
+pkgdesc="PhotoPrism is a privately hosted app for browsing, organizing, and sharing your photo collection"
+url="https://photoprism.app/"
+license=('AGPL3')
+arch=('x86_64' 'armv6h' 'armv7h' 'aarch64')
+depends=('ffmpeg' 'tensorflow' 'sqlite')
+makedepends=('go' 'nodejs-webpack' 'nodejs-webpack-cli')
+conflicts=('photoprism-git')
+
+source=(
+ "photoprism-$pkgver.tar.gz::https://github.com/photoprism/photoprism/archive/$pkgver-$_commit.tar.gz"
+ "photoprism.service"
+ "photoprism.service.env"
+ "photoprism.sysusers"
+ "photoprism.tmpfiles"
+)
+
+md5sums=('9b75ad73e3b07515d4d3ed0287d96b0f'
+ '09ad1555f1487cd5fb2e461e6b900e3d'
+ 'c164b0294295e0f23e482507bcf9fb1e'
+ 'c11fac89fe843b7342790511e98baca9'
+ 'b8a7591cde43436a3f27df108310badd')
+sha256sums=('d959b8233ba405614670fe4e0011943fb93f1e7dff3a9dc9cef852e4d8b3e99b'
+ '8a6c983cc9bd34fe5a576903b49d4ee9d15eef019ea22a9e63e6a00c04c8a43b'
+ '1dfc9d8900e9437c12d2ffefd9e3b1eea5a90b3801ff61e45c6e23ea4c214e3b'
+ '1ecfac0fb1c25794508063797295eef09b7a2ce23723fd8d52460d3fd6ad980f'
+ '61b4e817aa621f54b871c5857a336af7d4f2e6da32645e37233aa938f324c4d2')
+
+build() {
+ cd "$srcdir"/photoprism-"$pkgver"-"$_commit"
+ make DESTDIR="$pkgdir" PREFIX="/usr" generate build-go
+}
+
+package() {
+ cd "$srcdir"/photoprism-"$pkgver"-"$_commit"
+ make DESTDIR="$pkgdir" PREFIX="/usr" install
+ #install -Dm 755 $srcdir/k3s-${pkgver}-${CARCH} $pkgdir/usr/bin/k3s
+
+ install -Dm 644 "$srcdir"/photoprism.service "$pkgdir"/usr/lib/systemd/system/photoprism.service
+ install -Dm 400 "$srcdir"/photoprism.service.env "$pkgdir"/etc/systemd/system/photoprism.service.env
+ install -Dm 644 "$srcdir"/photoprism.sysusers "$pkgdir"/usr/lib/sysusers.d/photoprism.conf
+ install -Dm 644 "$srcdir"/photoprism.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/photoprism.conf
+}
diff --git a/photoprism.service b/photoprism.service
new file mode 100644
index 00000000000..79dfb5edb76
--- /dev/null
+++ b/photoprism.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Photoprism
+Documentation=https://docs.photoprism.org
+After=network-online.target
+
+[Service]
+User=photoprism
+# EnvironmentFile=/etc/systemd/system/photoprism.service.env
+# ExecStartPre=
+ExecStart=/usr/bin/photoprism start
+Restart=always
+RestartSec=15s
+
+[Install]
+WantedBy=multi-user.target
diff --git a/photoprism.service.env b/photoprism.service.env
new file mode 100644
index 00000000000..41f91f78815
--- /dev/null
+++ b/photoprism.service.env
@@ -0,0 +1,43 @@
+PHOTOPRISM_ASSETS_PATH /photoprism/assets
+PHOTOPRISM_STORAGE_PATH /photoprism/storage
+PHOTOPRISM_BACKUP_PATH /var/lib/photoprism
+PHOTOPRISM_ORIGINALS_PATH /photoprism/originals
+PHOTOPRISM_IMPORT_PATH /photoprism/import
+PHOTOPRISM_LOG_FILENAME /photoprism/photoprism.log
+PHOTOPRISM_PID_FILENAME /photoprism/photoprism.pid
+
+PHOTOPRISM_DEBUG "false"
+PHOTOPRISM_PUBLIC "false"
+PHOTOPRISM_READONLY "false"
+PHOTOPRISM_UPLOAD_NSFW "true"
+PHOTOPRISM_DETECT_NSFW "false"
+PHOTOPRISM_EXPERIMENTAL "false"
+PHOTOPRISM_SITE_URL "http://localhost:2342/"
+PHOTOPRISM_SITE_TITLE "PhotoPrism"
+PHOTOPRISM_SITE_CAPTION "Browse Your Life"
+PHOTOPRISM_SITE_DESCRIPTION ""
+PHOTOPRISM_SITE_AUTHOR ""
+PHOTOPRISM_HTTP_HOST "0.0.0.0"
+PHOTOPRISM_HTTP_PORT 2342
+PHOTOPRISM_DATABASE_DRIVER "sqlite"
+PHOTOPRISM_DATABASE_SERVER ""
+PHOTOPRISM_DATABASE_NAME "photoprism"
+PHOTOPRISM_DATABASE_USER "photoprism"
+PHOTOPRISM_DATABASE_PASSWORD ""
+PHOTOPRISM_DISABLE_WEBDAV "false"
+PHOTOPRISM_DISABLE_SETTINGS "false"
+PHOTOPRISM_DISABLE_BACKUPS "false"
+PHOTOPRISM_DISABLE_EXIFTOOL "false"
+PHOTOPRISM_DISABLE_PLACES "false"
+PHOTOPRISM_DISABLE_TENSORFLOW "false"
+PHOTOPRISM_DARKTABLE_PRESETS "false"
+PHOTOPRISM_THUMB_FILTER "lanczos"
+PHOTOPRISM_THUMB_UNCACHED "false"
+PHOTOPRISM_THUMB_SIZE 2048
+PHOTOPRISM_THUMB_SIZE_UNCACHED 7680
+PHOTOPRISM_JPEG_SIZE 7680
+PHOTOPRISM_JPEG_QUALITY 92
+PHOTOPRISM_WORKERS 0
+PHOTOPRISM_WAKEUP_INTERVAL 900
+PHOTOPRISM_AUTO_INDEX 300
+PHOTOPRISM_AUTO_IMPORT 300
diff --git a/photoprism.sysusers b/photoprism.sysusers
new file mode 100644
index 00000000000..2e6a367247b
--- /dev/null
+++ b/photoprism.sysusers
@@ -0,0 +1 @@
+u photoprism - "Photoprism Media Server" /var/lib/photoprism
diff --git a/photoprism.tmpfiles b/photoprism.tmpfiles
new file mode 100644
index 00000000000..3554979f9c0
--- /dev/null
+++ b/photoprism.tmpfiles
@@ -0,0 +1,2 @@
+d /var/cache/photoprism 0755 photoprism photoprism -
+d /var/lib/photoprism 0755 photoprism photoprism -