git » media-player-info.git » main » tree

[main] / PKGBUILD

# Maintainer : Ionut Biru <ibiru@archlinux.org>
# Contributor: Marti Raudsepp <marti@juffo.org>

pkgname=media-player-info
pkgver=24
pkgrel=2
pkgdesc="Data files describing media player capabilities, for post-HAL systems"
arch=('any')
license=('BSD')
url="https://www.freedesktop.org/wiki/Software/media-player-info/"
depends=('systemd')
makedepends=('python' #git
)
#_commit=337c758d95cc37f5a1b7a2a065e2e2cd8a75c4d8  # tags/24^0
source=(
https://www.freedesktop.org/software/media-player-info/media-player-info-$pkgver.tar.gz
#"git+https://anongit.freedesktop.org/git/media-player-info#commit=$_commit"
)
sha256sums=('SKIP')

#pkgver() {
#  cd $pkgname
#  git describe --tags | sed 's/-/+/g'
#}

prepare() {
  [ ! -e $pkgname ] && [ -d $pkgname-$pkgver ] && ln -s $pkgname-$pkgver $pkgname || true
  cd $pkgname
  NOCONFIGURE=1 [ -x ./autogen.sh ] && ./autogen.sh || true
}

#check() {
#  cd $pkgname
#  make check
#}

build() {
  cd $pkgname

  ./configure --prefix=/usr \
      --with-udevdir=/usr/lib/udev
  LANG="en_US.UTF-8" make
}

package() {
  cd "$pkgname"
  make DESTDIR="$pkgdir" install

  install -d "$pkgdir/usr/share/licenses/$pkgname"
  install -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname"
}