mirror of
https://aur.archlinux.org/ocp-git.git
synced 2024-11-21 20:06:27 +00:00
Initial import
This commit is contained in:
commit
6acb873e14
3 changed files with 97 additions and 0 deletions
27
.SRCINFO
Normal file
27
.SRCINFO
Normal file
|
@ -0,0 +1,27 @@
|
|||
pkgbase = ocp-git
|
||||
pkgdesc = A music file player for Linux, Unix, DOS and Windows 95-ME, XP.
|
||||
pkgver = 0.1.22.r62.3a44284
|
||||
pkgrel = 1
|
||||
url = http://stian.cubic.org/project-ocp.php
|
||||
install = ocp-git.install
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
license = GPL
|
||||
makedepends = git
|
||||
depends = hicolor-icon-theme
|
||||
depends = libxpm
|
||||
depends = libxxf86vm
|
||||
optdepends = adplug: for OPL formats support
|
||||
optdepends = alsa-lib: for ALSA output
|
||||
optdepends = flac: for FLAC audio support
|
||||
optdepends = libmad: for MPEG audio support
|
||||
optdepends = libsidplay: for SID music support
|
||||
optdepends = libvorbis: for Vorbis audio support
|
||||
optdepends = sdl: for SDL user interface support
|
||||
conflicts = ocp
|
||||
replaces = opencubicplayer-git
|
||||
source = ocp::git://git.code.sf.net/p/opencubicplayer/code
|
||||
md5sums = SKIP
|
||||
|
||||
pkgname = ocp-git
|
||||
|
45
PKGBUILD
Normal file
45
PKGBUILD
Normal file
|
@ -0,0 +1,45 @@
|
|||
# Maintainer: Ossi Saukko <osaukko at gmail dot com>
|
||||
_name=ocp
|
||||
pkgname=ocp-git
|
||||
pkgver=0.1.22.r62.3a44284
|
||||
pkgrel=1
|
||||
pkgdesc="A music file player for Linux, Unix, DOS and Windows 95-ME, XP."
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://stian.cubic.org/project-ocp.php"
|
||||
license=('GPL')
|
||||
depends=('hicolor-icon-theme'
|
||||
'libxpm'
|
||||
'libxxf86vm')
|
||||
optdepends=('adplug: for OPL formats support'
|
||||
'alsa-lib: for ALSA output'
|
||||
'flac: for FLAC audio support'
|
||||
'libmad: for MPEG audio support'
|
||||
'libsidplay: for SID music support'
|
||||
'libvorbis: for Vorbis audio support'
|
||||
'sdl: for SDL user interface support')
|
||||
makedepends=('git')
|
||||
provides=("${_name}=${pkgver}")
|
||||
conflicts=("${_name}")
|
||||
replaces=('opencubicplayer-git')
|
||||
install=$pkgname.install
|
||||
source=("${_name}::git://git.code.sf.net/p/opencubicplayer/code")
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "${srcdir}/${_name}"
|
||||
printf "%s.r%s.%s" "$(grep \^AC_INIT configure.ac|cut -d, -f2|xargs)" \
|
||||
"$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_name}"
|
||||
./configure --prefix=/usr
|
||||
|
||||
cd "${srcdir}/${_name}"
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${_name}"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
}
|
25
ocp-git.install
Normal file
25
ocp-git.install
Normal file
|
@ -0,0 +1,25 @@
|
|||
infodir=usr/share/info
|
||||
|
||||
post_install() {
|
||||
[ -x usr/bin/install-info ] || return 0
|
||||
install-info $infodir/ocp.info.gz $infodir/dir 2> /dev/null
|
||||
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
|
||||
update-desktop-database -q
|
||||
echo
|
||||
echo Please note that you need to rebuild this package after installing any of the optional dependencies.
|
||||
echo
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
pre_remove() {
|
||||
install-info --delete $infodir/ocp.info.gz $infodir/dir 2> /dev/null
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
update-desktop-database -q
|
||||
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
|
||||
}
|
||||
|
Loading…
Reference in a new issue