Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Jul 2008
    Posts
    119

    My Alpine Linux Repo for LMS and Squeezelite

    In case anyone wants to try LMS or Squeezelite on Alpine Linux, here are some directions for adding my repo and installing the packages. I'm leaving the armel repo online but I'm not really updating it anymore (see downthread, Ralphy provided lms and updated squeezelite packages for the armel repo) since my experience with the circa 2011 Dell M300 wasn't that great. I had fun working on it with Ralphy's help but ultimately I decided to move on and picked up an x86_64 Dell/Wyse 5070 which has been awesome so far as my new home server (with LMS). I hope to add some arm packages also, for rpi4 and pi zero w, not sure when I'll get to it though.

    Add the repo to the repositories file:
    Code:
    $ cat /etc/apk/repositories 
    http://www.sodface.com/repo
    My public key is available here:
    http://www.sodface.com/repo/sodface-pub-key.tar.gz

    Extract to /etc/apk/keys/
    Code:
    $ sudo tar xzvf sodface-pub-key.tar.gz -C /etc/apk/keys/
    sod@sodface.com-5e51d361.rsa.pub
    Run apk update:
    Code:
    $ sudo apk update
    Install squeezelite:
    Code:
    $ sudo apk add squeezelite
    Install LMS:
    Code:
    $ sudo apk add lms
    LMS consists of 5 packages, my plan is to only update the lms-nocpan package and leave the other four relatively static:

    Code:
    lms-8.0-r2.apk
    lms-modules-8.0-r0.apk
    lms-nocpan-8.0.0.1590233071-r0.apk
    lms-openrc-8.0-r2.apk
    lms-utils-8.0-r0.apk
    squeezelite-1.9.7.1246-r0.apk
    squeezelite-doc-1.9.7.1246-r0.apk
    squeezelite-openrc-1.9.7.1246-r0.apk
    Let me know if you try it out or have any suggestions, thanks!
    Last edited by sodface; Today at 06:38.

  2. #2
    Senior Member
    Join Date
    Jul 2008
    Posts
    119
    I've got a cron job running on my x86_64 build machine that checks for LMS updates at the nightly downloads page then rebuilds the nocpan package and updates the repo accordingly. Picked up the change to build 1590299558 and the updated package was available in the repo as of this morning.

    //edit, only going to run this once a week at 0300 EST on Saturday.

    Here's the script I'm using, improvements welcome!

    Code:
    #!/bin/sh
    
    cd "/home/sodface/aports/main/lms-nocpan"
    
    newfrag=$(wget -q http://downloads.slimdevices.com/nightly/?ver=8.0 -O - | grep noCPAN.tgz | cut -d'/' -f4,5 | cut -d'"' -f1)
    commit=$(printf "${newfrag}" | cut -d'/' -f1)
    build=$(printf "${newfrag}" | cut -d'-' -f3)
    
    if ! grep -q ${build} APKBUILD
    then 
      sed -i "s/_build=\".*\"/_build=\"${build}\"/" APKBUILD
      sed -i "s/_commit=\".*\"/_commit=\"${commit}\"/" APKBUILD
      abuild -q checksum
      abuild -qr
      abuild -q cleanoldpkg
    else
      echo "No update on $(date)"
    fi
    Code:
    Logitech Media Server Version: 8.0.0 - 1590299558 @ Sun May 24 08:24:36 CEST 2020
    Hostname: server
    Server IP Address: 10.0.0.10
    Server HTTP Port Number: 9000
    Operating system: Alpine Linux - EN - utf8
    Platform Architecture: unknown
    Perl Version: 5.30.2 - x86_64-linux-thread-multi
    Audio::Scan: 1.02
    IO::Socket::SSL: 2.068
    Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)
    Total Players Recognized: 3
    Last edited by sodface; 2020-05-25 at 07:21.

  3. #3
    Senior Member
    Join Date
    Jul 2008
    Posts
    119
    Thanks to Ralphy, the lms and squeezelite packages are added to the armel repo. I'm not able to test them however so feedback is welcome! The lms-nocpan package for armel should be updated once a week (or more often if I run it manually) along with the x86_64 and any other architectures I add since it doesn't need to be compiled, just packaged.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •