Skip to content

Commit

Permalink
tsukimi: independent from AUR
Browse files Browse the repository at this point in the history
  • Loading branch information
merrkry committed Sep 29, 2024
1 parent 0a9579b commit 7e2dbf1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
12 changes: 4 additions & 8 deletions archlinuxcn/tsukimi-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Maintainer: Eikano <[email protected]>

_pkgname="tsukimi"
pkgname="${_pkgname}-git"
pkgver=0.13.0.r633.d1d1a0e
pkgver=0.13.0.r635.g1d1a0e
pkgrel=1
pkgdesc='A simple third-party Emby client'
arch=('x86_64')
Expand All @@ -21,15 +19,13 @@ makedepends=(
source=(
tsukimi::git+https://github.com/tsukinaha/tsukimi.git
tsukimi.desktop
tsukimi.png
)
sha256sums=('SKIP'
'd12dc777bbb05ed92d75f8d36e453b651e12596ead6e297386419a24d051a0a3'
'04a712d60bbf5cc8873af24fb8ff76b47f27ef77ba45c7901fb7d3cd26dd6893')
'SKIP')

pkgver() {
cd "${_pkgname}"
echo $(grep '^version =' Cargo.toml | head -n1 | cut -d\" -f2).r$(git rev-list --count HEAD).g$(git describe --always)
echo $(grep '^version =' Cargo.toml | head -n1 | cut -d\" -f2).r$(git rev-list --count HEAD).g$(git describe --long --tags --abbrev=7 | tail -c 7)
}

prepare() {
Expand All @@ -50,7 +46,7 @@ package() {
install -Dm0755 -t "${pkgdir}/usr/bin/" "target/release/${_pkgname}"
install -Dm 644 -t "${pkgdir}/usr/share/glib-2.0/schemas" "moe.tsuna.tsukimi.gschema.xml"
install -Dm 644 -t "${pkgdir}/usr/share/applications/" "${srcdir}/tsukimi.desktop"
install -Dm 644 -t "${pkgdir}/usr/share/pixmaps/" "${srcdir}/tsukimi.png"
install -Dm 644 -t "${pkgdir}/usr/share/pixmaps/" "resources/ui/icons/tsukimi.png"

# install i18n files
cp -r "i18n/locale" "${pkgdir}/usr/share/locale"
Expand Down
9 changes: 5 additions & 4 deletions archlinuxcn/tsukimi-git/lilac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ maintainers:
- github: merrkry
email: [email protected]

pre_build_script: aur_pre_build(maintainers=['Eikano'])
post_build: git_pkgbuild_commit
pre_build_script: |
update_pkgrel()
vcs_update()
post_build_script: git_pkgbuild_commit()

update_on:
- source: github
github: tsukinaha/tsukimi
- source: aur
aur: tsukimi-git
- source: alpm
alpm: mpv
- source: alpm
Expand Down
7 changes: 7 additions & 0 deletions archlinuxcn/tsukimi-git/tsukimi.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Desktop Entry]
Name=Tsukimi
Exec=tsukimi
Type=Application
Icon=tsukimi
Categories=AudioVideo;
StartupWMClass=moe.tsuna.tsukimi

0 comments on commit 7e2dbf1

Please sign in to comment.