OSDN Git Service

[add] : Added fascode-live-tools
authorhayao <hayao@fascode.net>
Mon, 19 Jul 2021 21:52:02 +0000 (06:52 +0900)
committerhayao <hayao@fascode.net>
Mon, 19 Jul 2021 21:52:02 +0000 (06:52 +0900)
alter-stable/any/fascode-live-tools/.SRCINFO [new file with mode: 0644]
alter-stable/any/fascode-live-tools/.gitignore [new file with mode: 0644]
alter-stable/any/fascode-live-tools/PKGBUILD [new file with mode: 0644]

diff --git a/alter-stable/any/fascode-live-tools/.SRCINFO b/alter-stable/any/fascode-live-tools/.SRCINFO
new file mode 100644 (file)
index 0000000..e4efa1f
--- /dev/null
@@ -0,0 +1,50 @@
+pkgbase = alterlinux-live-tools
+       pkgdesc = Scripts required for live environment
+       pkgver = 1.8.1
+       pkgrel = 3
+       url = https://github.com/FascodeNet/fascode-live-tools
+       arch = any
+       license = SUSHI-WARE
+       depends = xdg-user-dirs
+       depends = bash
+       source = https://github.com/FascodeNet/fascode-live-tools/archive/v1.8.1.zip
+       md5sums = 9a8c5cb5b3e4ab0c213aec0049b3fe59
+
+pkgname = alterlinux-live-tools
+       pkgdesc = Scripts required for live environment (meta package)
+       depends = xdg-user-dirs
+       depends = bash
+       depends = alterlinux-live-tools
+       depends = fascode-gtk-bookmarks
+       depends = alterlinux-welcome-page
+       depends = alterlinux-plasma-bookmarks
+       depends = alterlinux-desktop-file
+       depends = alterlinux-live-info
+       depends = alterlinux-gtk-bookmarks
+
+pkgname = fascode-gtk-bookmarks
+       pkgdesc = Simple script to automatically generate GTK bookmarks
+       provides = alterlinux-gtk-bookmarks
+       replaces = alterlinux-gtk-bookmarks
+
+pkgname = alterlinux-welcome-page
+       pkgdesc = A simple script to open the official AlterLinux website
+       optdepends = chromium: To open the page
+       optdepends = google-chrome: To open the page
+       optdepends = firefox: To open the page
+
+pkgname = alterlinux-plasma-bookmarks
+       pkgdesc = Simple script to automatically generate Plasma bookmarks
+
+pkgname = alterlinux-desktop-file
+       pkgdesc = Place the Calamares icon on your desktop
+       depends = xdg-user-dirs
+       depends = bash
+       depends = glib2
+
+pkgname = alterlinux-live-info
+       pkgdesc = Display version information of live environment
+
+pkgname = alterlinux-gtk-bookmarks
+       pkgdesc = Simple script to automatically generate GTK bookmarks
+       depends = fascode-gtk-bookmarks
diff --git a/alter-stable/any/fascode-live-tools/.gitignore b/alter-stable/any/fascode-live-tools/.gitignore
new file mode 100644 (file)
index 0000000..3a19e1d
--- /dev/null
@@ -0,0 +1,4 @@
+src
+pkg
+*.pkg.tar.*
+*.zip
diff --git a/alter-stable/any/fascode-live-tools/PKGBUILD b/alter-stable/any/fascode-live-tools/PKGBUILD
new file mode 100644 (file)
index 0000000..8f3b8d8
--- /dev/null
@@ -0,0 +1,108 @@
+# Maintaoner: Yamada Hayao <hayao@fascode.net>
+
+remove () {
+    rm -rf "${@}"
+}
+_pkgname=(
+    "alterlinux-live-tools"
+    "fascode-gtk-bookmarks"
+    "alterlinux-welcome-page"
+    "alterlinux-plasma-bookmarks"
+    "alterlinux-desktop-file"
+    "alterlinux-live-info"
+    "alterlinux-gtk-bookmarks"
+)
+
+pkgname=(${_pkgname[@]})
+_reponame="fascode-live-tools"
+pkgver="1.8.1"
+pkgrel="3"
+pkgdesc="Scripts required for live environment"
+arch=('any')
+url="https://github.com/FascodeNet/${_reponame}"
+license=('SUSHI-WARE')
+depends=(
+    "xdg-user-dirs"
+    "bash"
+)
+md5sums=("9a8c5cb5b3e4ab0c213aec0049b3fe59")
+source=("${url}/archive/v${pkgver}.zip")
+
+extracted="${_reponame}-${pkgver}"
+#extracted="${_reponame}"
+
+install_files() {
+    _pkgname="${pkgname}"
+    cd "${srcdir}/${extracted}/${_pkgname}"
+    install -m 755 -D "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
+}
+
+install_license() {
+    _pkgname="${pkgname}"
+    cd "${srcdir}/${extracted}/"
+    install -m 755 -D "LICENSE.md" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE.md"
+}
+
+
+# alterlinux-live-tools
+package_alterlinux-live-tools() {
+    pkgdesc="Scripts required for live environment (meta package)"
+    depends+=("${_pkgname[@]}")
+    install_license
+}
+
+# alterlinux-gtk-bookmarks
+package_fascode-gtk-bookmarks() {
+    pkgdesc="Simple script to automatically generate GTK bookmarks"
+    replaces+=("alterlinux-gtk-bookmarks")
+    provides+=("alterlinux-gtk-bookmarks")
+    install_files
+    install_license
+}
+
+package_alterlinux-gtk-bookmarks(){
+    pkgdesc="Simple script to automatically generate GTK bookmarks"
+    depends=("fascode-gtk-bookmarks")
+    mkdir -p "${pkgdir}/usr/bin"
+    ln -s "/usr/bin/fascode-gtk-bookmarks" "${pkgdir}/usr/bin/alterlinux-gtk-bookmarks"
+}
+
+# alterlinux-welcome-page
+package_alterlinux-welcome-page() {
+    pkgdesc="A simple script to open the official AlterLinux website"
+    optdepends=(
+            'chromium: To open the page'
+            'google-chrome: To open the page'
+            'firefox: To open the page'
+    )
+
+    install_files
+    install_license
+}
+
+# alterlinux-plasma-bookmarks
+package_alterlinux-plasma-bookmarks() {
+    pkgdesc="Simple script to automatically generate Plasma bookmarks"
+    install_files
+    install_license
+}
+
+# alterlinux-desktop-file
+package_alterlinux-desktop-file() {
+    pkgdesc="Place the Calamares icon on your desktop"
+    depends+=("glib2")
+    install_files
+
+    cd "${srcdir}/${extracted}/"
+    install -m 755 -D "${srcdir}/${extracted}/${pkgname}/calamares.desktop" "${pkgdir}/usr/share/alterlinux/desktop-file/calamares.desktop"
+    install -m 755 -D "${srcdir}/${extracted}/${pkgname}/welcome-to-alter.desktop" "${pkgdir}/usr/share/alterlinux/desktop-file/welcome-to-alter.desktop"
+
+    install_license
+}
+
+# alterlinux-live-info
+package_alterlinux-live-info() {
+    pkgdesc="Display version information of live environment"
+    install_files
+    install_license
+}