1 # Maintaoner: Yamada Hayao <hayao@fascode.net>
7 for _file in "${_list[@]}"; do
8 if [[ -f ${_file} ]]; then
10 elif [[ -d ${_file} ]]; then
17 "alterlinux-live-tools"
18 "alterlinux-gtk-bookmarks"
19 "alterlinux-welcome-page"
20 "alterlinux-plasma-bookmarks"
21 "alterlinux-desktop-file"
23 _reponame="alterlinux-live-tools"
24 pkgver=v1.5.1.r0.g80f281a
26 pkgdesc="Scripts required for live environment"
28 url="https://github.com/FascodeNet/${_reponame}"
29 license=('SUSHI-WARE')
36 source=("git+${url}.git")
38 #extracted="${_reponame}-${pkgver}"
39 extracted="${_reponame}"
42 _pkgname="${pkgname%-git}"
43 cd "${srcdir}/${extracted}/${_pkgname}"
44 install -m 755 -D "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
48 _pkgname="${pkgname%-git}"
49 cd "${srcdir}/${extracted}/"
50 install -m 755 -D "LICENSE.md" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE.md"
55 git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
58 for _pkg in ${_pkgname[@]}; do
59 pkgname+=("${_pkg}-git")
62 # alterlinux-live-tools-git
63 package_alterlinux-live-tools-git() {
64 pkgdesc="Scripts required for live environment (meta package)"
65 conflicts=('alterlinux-live-tools')
66 provides=("alterlinux-live-tools")
68 for _pkg in ${pkgname[@]}; do
75 # alterlinux-gtk-bookmarks-git
76 package_alterlinux-gtk-bookmarks-git() {
77 pkgdesc="Simple script to automatically generate GTK bookmarks"
82 # alterlinux-welcome-page-git
83 package_alterlinux-welcome-page-git() {
84 pkgdesc="A simple script to open the official AlterLinux website"
86 'chromium: To open the page'
87 'google-chrome: To open the page'
88 'firefox: To open the page'
95 # alterlinux-plasma-bookmarks-git
96 package_alterlinux-plasma-bookmarks-git() {
97 pkgdesc="Simple script to automatically generate Plasma bookmarks"
102 # alterlinux-desktop-file-git
103 package_alterlinux-desktop-file-git() {
104 pkgdesc="Place the Calamares icon on your desktop"
107 cd "${srcdir}/${extracted}/"
108 install -m 755 -D "${srcdir}/${extracted}/${pkgname%-git}/calamares.desktop" "${pkgdir}/usr/share/alterlinux/desktop-file/calamares.desktop"
109 install -m 755 -D "${srcdir}/${extracted}/${pkgname%-git}/welcome-to-alter.desktop" "${pkgdir}/usr/share/alterlinux/desktop-file/welcome-to-alter.desktop"