Package Details: libspectrum-git 1:1.5.0.r29.ge85c934-1

Git Clone URL: https://aur.archlinux.org/libspectrum-git.git (read-only, click to copy)
Package Base: libspectrum-git
Description: ZX Spectrum emulator support library.
Upstream URL: http://fuse-emulator.sourceforge.net/libspectrum.php
Licenses: GPL
Conflicts: libspectrum
Submitter: None
Maintainer: FredBezies
Last Packager: None
Votes: 0
Popularity: 0.000000
First Submitted: 2023-11-06 17:15 (UTC)
Last Updated: 2024-05-22 20:22 (UTC)

Latest Comments

<deleted-account> commented on 2024-05-22 20:22 (UTC)

Done, Thanks @FredBezies.

FredBezies commented on 2024-05-22 12:39 (UTC)

Added pkgver() function to get a fully git based package:

# Maintainer: Daniel Menelkir <dmenelkir at gmail dot com>

pkgname=libspectrum-git
pkgver=1.5.0.r29.ge85c934
pkgrel=1
epoch=1
pkgdesc="ZX Spectrum emulator support library."
arch=('i686' 'x86_64')
url="http://fuse-emulator.sourceforge.net/libspectrum.php"
license=("GPL")
conflicts=("libspectrum")
depends=('libgcrypt' 'glib2' 'audiofile')
source=("libspectrum::git+https://git.code.sf.net/p/fuse-emulator/libspectrum")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir"/libspectrum
  git describe --long --abbrev=7 | sed 's/^libspectrum-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir"/libspectrum
  ./autogen.sh
  ./configure --prefix=/usr --disable-static
  make
}

package() {
  cd "$srcdir"/libspectrum
  make DESTDIR="$pkgdir" install
}