--- /dev/null
+# Maintainer: lap1sid <development@fascode.net>
+
+pkgname=alterlinux-calamares
+pkgver=3.2.27
+pkgrel=1
+_pkgrel='b2'
+pkgdesc='Distribution-independent installer framework'
+arch=('i686' 'x86_64')
+license=(GPL)
+url="https://github.com/SereneTeam/alterlinux-calamares"
+license=('LGPL')
+depends=('kconfig' 'kcoreaddons' 'kiconthemes' 'ki18n' 'kio' 'solid' 'yaml-cpp' 'kpmcore'
+ 'boost-libs' 'hwinfo' 'qt5-svg' 'polkit-qt5' 'gtk-update-icon-cache' 'plasma-framework'
+ 'qt5-xmlpatterns' 'squashfs-tools' 'ckbcomp' 'libffi')
+makedepends=('extra-cmake-modules' 'qt5-tools' 'qt5-translations' 'git' 'boost')
+backup=('usr/share/calamares/modules/bootloader.conf'
+ 'usr/share/calamares/modules/displaymanager.conf'
+ 'usr/share/calamares/modules/initcpio.conf'
+ 'usr/share/calamares/modules/unpackfs.conf')
+
+source+=("$url/archive/$pkgver-$pkgrel.tar.gz")
+#source+=("$url/archive/$pkgver-$_pkgrel.tar.gz")
+
+sha256sums=('SKIP')
+
+prepare() {
+ # rename
+ mv ${srcdir}/${pkgname}-${pkgver}-${pkgrel} ${srcdir}/${pkgver}-${pkgrel}
+ #mv ${srcdir}/${pkgname}-${pkgver}-${_pkgrel} ${srcdir}/${pkgver}-${pkgrel}
+ cd ${srcdir}/${pkgver}-${pkgrel}
+ sed -i -e 's/"Install configuration files" OFF/"Install configuration files" ON/' CMakeLists.txt
+
+ # change branding
+ sed -i -e "s/default/alter/g" src/branding/CMakeLists.txt
+}
+
+build() {
+ cd ${srcdir}/${pkgver}-${pkgrel}
+
+ mkdir -p build
+ cd build
+ cmake .. \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DWITH_PYTHONQT:BOOL=ON \
+ -DBoost_NO_BOOST_CMAKE=ON \
+ -DSKIP_MODULES="tracking webview interactiveterminal initramfs \
+ initramfscfg dracut dracutlukscfg \
+ dummyprocess dummypython dummycpp \
+ dummypythonqt services-openrc"
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgver}-${pkgrel}/build
+ make DESTDIR="$pkgdir" install
+ install -Dm755 "../data/final-process" "$pkgdir/usr/share/calamares/final-process"
+ install -Dm644 "../data/alter-icon.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/calamares.svg"
+ install -Dm644 "../data/calamares.desktop" "$pkgdir/usr/share/applications/calamares.desktop"
+ install -Dm755 "../data/calamares_polkit" "$pkgdir/usr/bin/calamares_polkit"
+ install -Dm644 "../data/49-nopasswd-calamares.rules" "$pkgdir/etc/polkit-1/rules.d/49-nopasswd-calamares.rules"
+ chmod 750 "$pkgdir"/etc/polkit-1/rules.d
+
+ # rename services-systemd back to services
+ mv "$pkgdir/usr/lib/calamares/modules/services-systemd" "$pkgdir/usr/lib/calamares/modules/services"
+ mv "$pkgdir/usr/share/calamares/modules/services-systemd.conf" "$pkgdir/usr/share/calamares/modules/services.conf"
+ sed -i -e 's/-systemd//' "$pkgdir/usr/lib/calamares/modules/services/module.desc"
+ sed -i -e 's/-systemd//' "$pkgdir/usr/share/calamares/settings.conf"
+}
--- /dev/null
+# Maintainer : Yamada Hayao <development@fascode.net>
+# Maintainer : lap1sid <development@fascode.net>
+
+pkgname=alterlinux-fcitx-conf
+pkgver=1.1
+pkgrel=1
+pkgdesc='AlterLinux fcitx Settings'
+arch=('any')
+url='https:/fascode.net'
+source=("https://github.com/SereneTeam/${pkgname}/archive/v${pkgver}.zip")
+depends=('alterlinux-wallpapers')
+conflicts=("alterlinux-fcitx-conf-git")
+sha256sums=('SKIP')
+
+
+build () {
+ function remove () {
+ local _list
+ local _file
+ _list=($(echo "$@"))
+ for _file in "${_list[@]}"; do
+ if [[ -f ${_file} ]]; then
+ rm -f "${_file}"
+ elif [[ -d ${_file} ]]; then
+ rm -rf "${_file}"
+ fi
+ echo "${_file} was deleted."
+ done
+ }
+ function copy () {
+ if [[ -f $1 ]]; then
+ cp $1 $2
+ elif [[ -d $1 ]]; then
+ cp -r $1 $2
+ fi
+ }
+ mkdir -p ${srcdir}/etc/skel/.config
+ cp -r ${srcdir}/${pkgname}-${pkgver}/* ${srcdir}/etc/skel/.config
+ copy ${srcdir}/${pkgname}-${pkgver}/.xprofile ${srcdir}/etc/skel/
+ remove ${srcdir}/${pkgname}-${pkgver}
+ rm v${pkgver}.zip
+}
+
+package () {
+ mkdir -p "$pkgdir"
+ cp -r * "$pkgdir"
+}
--- /dev/null
+# Maintainer : Yamada Hayao <development@fascode.net>
+# Maintainer : lap1sid <development@fascode.net>
+
+pkgname=alterlinux-keyring
+pkgver=20200308
+pkgrel=1
+pkgdesc='AlterLinux PGP keyring'
+arch=('any')
+url='https:/fascode.net'
+license=('GPL')
+install="${pkgname}.install"
+source=("git+https://github.com/SereneTeam/alterlinux-keyring.git")
+validpgpkeys=("BDC396346243AB57ACD090F9F50544048389DA36")
+sha256sums=('SKIP')
+package() {
+ cd "${srcdir}/${pkgname}"
+ make PREFIX=/usr DESTDIR=${pkgdir} install
+}
--- /dev/null
+post_upgrade() {
+ if usr/bin/pacman-key -l >/dev/null 2>&1; then
+ usr/bin/pacman-key --populate alterlinux
+ else
+ echo " >>> Run \`pacman-key --init\` to set up your pacman keyring."
+ echo " >>> Then run \`pacman-key --populate alterlinux\` to install the alterlinux keyring."
+ fi
+}
+
+post_install() {
+ if [ -x usr/bin/pacman-key ]; then
+ post_upgrade
+ fi
+}
--- /dev/null
+# Maintainer : Yamada Hayao <development@fascode.net>
+# Maintainer : lap1sid <development@fascode.net>
+pkgname=alterlinux-mirrorlist
+pkgver=20200426
+pkgrel=1
+pkgdesc='AlterLinux repository mirrorlists'
+arch=('any')
+url='https:/fascode.net'
+source=("mirrorlist-alter")
+sha256sums=('SKIP')
+package() {
+ cd "${srcdir}"
+ install -Dm644 "${srcdir}/mirrorlist-alter" "${pkgdir}/etc/pacman.d/mirrorlist-alter"
+}
\ No newline at end of file
--- /dev/null
+##
+## Alter Linux repository mirrorlist
+##
+## (c) 2019-2020 Fascode Network.
+##
+
+# YamaD
+Server = https://xn--d-8o2b.com/repo/$repo/$arch
+
+# OSDN-SereneLinux
+Server = https://ja.osdn.net/projects/serene/storage/repo/$repo/$arch
+
+# OSDN-AlterLinux
+Server = https://osdn.net/projects/alterlinux/storage/repo/$repo/$arch
+
+# Hayao
+Server = https://h.0u0.biz/repo/$repo/$arch
\ No newline at end of file
--- /dev/null
+pkgbase = alterlinux-wallpapers
+ pkgdesc = AlterLinux wallpapers
+ pkgver = 5.0
+ pkgrel = 3
+ url = https:/fascode.net
+ arch = any
+ source = alter.png
+ source = alter-old.png
+ source = alter-jiju.png
+ source = alter-nochr.png
+ source = alterlinux-wallpapers-xfce
+ source = alterlinux-wallpapers-xfce-blue.hook
+ source = alterlinux-wallpapers-xfce-stripes.hook
+ source = alterlinux-wallpapers-xfce-teal.hook
+ source = alterlinux-wallpapers-lxde
+ source = alterlinux-wallpapers-lxde-blue.hook
+ md5sums = 75bbf3e0c33d0d7f4e09e9a5489691ff
+ md5sums = 42b477468bc5d88825b41e8522552ad3
+ md5sums = ca58c394911aa211c5712fabbad23fe2
+ md5sums = aea503af241273d8773b4abefee8992e
+ md5sums = 845f106696fbac435126babebd728185
+ md5sums = e05b85d07afede613e2a3f7e8e5ee2d4
+ md5sums = 1c55857c4ab27651ce4db065814df1f0
+ md5sums = 768f565556b2a8bb92696cb16565e06a
+ md5sums = d0ae4ee0249809481dab7ede4df44a42
+ md5sums = 08e386e460d763171e1aed033f8d53e1
+
+pkgname = alterlinux-wallpapers
+
--- /dev/null
+# Maintainer : Yamada Hayao <development@fascode.net>
+# Maintainer : lap1sid <development@fascode.net>
+
+pkgname=alterlinux-wallpapers
+pkgver=5.0
+pkgrel=3
+pkgdesc='AlterLinux wallpapers'
+arch=('any')
+url='https:/fascode.net'
+source=("alter.png"
+ "alter-old.png"
+ "alter-jiju.png"
+ "alter-nochr.png"
+
+ "alterlinux-wallpapers-xfce"
+ "alterlinux-wallpapers-xfce-blue.hook"
+ "alterlinux-wallpapers-xfce-stripes.hook"
+ "alterlinux-wallpapers-xfce-teal.hook"
+
+ "alterlinux-wallpapers-lxde"
+ "alterlinux-wallpapers-lxde-blue.hook"
+ )
+
+md5sums=('75bbf3e0c33d0d7f4e09e9a5489691ff'
+ '42b477468bc5d88825b41e8522552ad3'
+ 'ca58c394911aa211c5712fabbad23fe2'
+ 'aea503af241273d8773b4abefee8992e'
+
+ "845f106696fbac435126babebd728185"
+ "e05b85d07afede613e2a3f7e8e5ee2d4"
+ "1c55857c4ab27651ce4db065814df1f0"
+ "768f565556b2a8bb92696cb16565e06a"
+
+ "d0ae4ee0249809481dab7ede4df44a42"
+ "08e386e460d763171e1aed033f8d53e1"
+)
+package() {
+ cd "${srcdir}"
+
+ # Install images
+ install -Dm644 "${srcdir}/alter.png" "${pkgdir}/usr/share/backgrounds/alter.png"
+ for image in "${srcdir}"/alter-*.png; do
+ install -Dm644 "${srcdir}/$(basename ${image})" "${pkgdir}/usr/share/backgrounds/$(basename ${image})"
+ done
+
+ # OLD CODE
+ #install -Dm644 "${srcdir}/alter-old.png" "${pkgdir}/usr/share/backgrounds/alter-old.png"
+ #install -Dm644 "${srcdir}/alter-jiju.png" "${pkgdir}/usr/share/backgrounds/alter-jiju.png"
+ #install -Dm644 "${srcdir}/alter-nochr.png" "${pkgdir}/usr/share/backgrounds/alter-nochr.png"
+
+ # Install Scripts
+ install -Dm755 "${srcdir}/alterlinux-wallpapers-xfce" "${pkgdir}/usr/share/libalpm/scripts/alterlinux-wallpapers-xfce"
+ install -Dm755 "${srcdir}/alterlinux-wallpapers-lxde" "${pkgdir}/usr/share/libalpm/scripts/alterlinux-wallpapers-lxde"
+
+ # Install hooks
+ local hook
+ for hook in "${srcdir}"/*.hook; do
+ install -Dm644 "${srcdir}/$(basename ${hook})" "${pkgdir}/usr/share/libalpm/hooks/$(basename ${hook})"
+ done
+}
--- /dev/null
+#!/usr/bin/env bash
+
+# Delete file only if file exists
+# remove <file1> <file2> ...
+function remove () {
+ local _list
+ local _file
+ _list=($(echo "$@"))
+ for _file in "${_list[@]}"; do
+ if [[ -f ${_file} ]]; then
+ rm -f "${_file}"
+ elif [[ -d ${_file} ]]; then
+ rm -rf "${_file}"
+ fi
+ done
+}
+
+image="${1}"
+replace="${2}"
+
+# Replace wallpaper.
+remove "/usr/share/lxde/wallpapers/lxde_${image}.jpg"
+ln -s "/usr/share/backgrounds/${replace}.png" "/usr/share/lxde/wallpapers/lxde_${image}.jpg"
+chmod 644 "/usr/share/backgrounds/${replace}.png"
\ No newline at end of file
--- /dev/null
+[Trigger]
+Type = Path
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/share/lxde/wallpapers/lxde_blue.jpg
+
+[Action]
+Description = Optimizing wallpaper (lxde-blue) ...
+When = PostTransaction
+Depends=alterlinux-wallpapers
+Exec = /usr/share/libalpm/scripts/alterlinux-wallpapers-lxde blue alter
+NeedsTargets
--- /dev/null
+#!/usr/bin/env bash
+
+# Delete file only if file exists
+# remove <file1> <file2> ...
+function remove () {
+ local _list
+ local _file
+ _list=($(echo "$@"))
+ for _file in "${_list[@]}"; do
+ if [[ -f ${_file} ]]; then
+ rm -f "${_file}"
+ elif [[ -d ${_file} ]]; then
+ rm -rf "${_file}"
+ fi
+ done
+}
+
+image="${1}"
+replace="${2}"
+
+# Replace wallpaper.
+remove "/usr/share/backgrounds/xfce/xfce-${image}.png"
+ln -s "/usr/share/backgrounds/${replace}.png" "/usr/share/backgrounds/xfce/xfce-${image}.png"
+chmod 644 "/usr/share/backgrounds/${replace}.png"
\ No newline at end of file
--- /dev/null
+[Trigger]
+Type = Path
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/share/backgrounds/xfce/xfce-blue.png
+
+[Action]
+Description = Optimizing wallpaper (xfce-blue) ...
+When = PostTransaction
+Depends=alterlinux-wallpapers
+Exec = /usr/share/libalpm/scripts/alterlinux-wallpapers-xfce blue alter-jiju
+NeedsTargets
--- /dev/null
+[Trigger]
+Type = Path
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/share/backgrounds/xfce/xfce-stripes.png
+
+[Action]
+Description = Optimizing wallpaper (xfce-stripes) ...
+When = PostTransaction
+Depends=alterlinux-wallpapers
+Exec = /usr/share/libalpm/scripts/alterlinux-wallpapers-xfce stripes alter
+NeedsTargets
--- /dev/null
+[Trigger]
+Type = Path
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/share/backgrounds/xfce/xfce-teal.png
+
+[Action]
+Description = Optimizing wallpaper (xfce-teal) ...
+When = PostTransaction
+Depends=alterlinux-wallpapers
+Exec = /usr/share/libalpm/scripts/alterlinux-wallpapers-xfce teal alter-old
+NeedsTargets
--- /dev/null
+# Maintainer : Yamada Hayao <development@fascode.net>
+# Maintainer : lap1sid <development@fascode.net>
+
+pkgname=alterlinux-xfce-conf
+pkgver=1.6
+pkgrel=1
+pkgdesc='AlterLinux Xfce Settings'
+arch=('any')
+url='https:/fascode.net'
+source=("https://github.com/SereneTeam/${pkgname}/archive/v${pkgver}.zip")
+depends=('alterlinux-wallpapers' 'nerd-fonts-source-code-pro')
+conflicts=("alterlinux-xfce-conf-git")
+md5sums=('7cfd0a3cb90d31fc91d16c19f94408b6')
+
+
+build () {
+ function remove () {
+ local _list
+ local _file
+ _list=($(echo "$@"))
+ for _file in "${_list[@]}"; do
+ if [[ -f ${_file} ]]; then
+ rm -f "${_file}"
+ elif [[ -d ${_file} ]]; then
+ rm -rf "${_file}"
+ fi
+ echo "${_file} was deleted."
+ done
+ }
+ function copy () {
+ if [[ -f $1 ]]; then
+ cp $1 $2
+ elif [[ -d $1 ]]; then
+ cp -r $1 $2
+ fi
+ }
+ mkdir -p ${srcdir}/etc/skel/.config
+ cp -r ${srcdir}/${pkgname}-${pkgver}/* ${srcdir}/etc/skel/.config
+ copy ${srcdir}/${pkgname}-${pkgver}/.xinitrc ${srcdir}/etc/skel/
+ remove ${srcdir}/${pkgname}-${pkgver}
+ rm v${pkgver}.zip
+}
+
+package () {
+ mkdir -p "$pkgdir"
+ cp -r * "$pkgdir"
+}
--- /dev/null
+# Maintainer : Yamada Hayao <hayao@fascode.net>
+pkgname=dummy
+pkgver=1.0
+pkgrel=1
+pkgdesc='Dummy package.'
+arch=('any')
+url='https:/fascode.net'
+package() {
+ echo $arch
+}
\ No newline at end of file
--- /dev/null
+# Maintainer : Yamada Hayao <development@fascode.net>
+# Maintainer : lap1sid <development@fascode.net>
+
+pkgname=lsd-control
+_gitname=lsdcontrol
+pkgver=1.2
+pkgrel=1
+pkgdesc='lsd command controller'
+arch=('any')
+url='https:/fascode.net'
+depends=('lsd')
+source=("https://github.com/SereneTeam/lsdcontrol/archive/v${pkgver}.zip")
+md5sums=('a13ff73e41f56ed94a28ca51ae703bdb')
+conflicts=('lsd-control-git')
+
+package() {
+ cd "${_gitname}-${pkgver}" &&
+ install -m 755 -D lsd-alias "${pkgdir}/usr/local/lib/lsd-alias"
+ install -m 755 -D lsd-control "${pkgdir}/usr/local/bin/lsd-control"
+}
+