mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
51 lines
1.7 KiB
Bash
51 lines
1.7 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=frozen-bubble
|
|
_pkgver=2.2.1-beta1
|
|
pkgver=2.2.1b1
|
|
pkgrel=2
|
|
pkgdesc="A game in which you throw colorful bubbles and build groups to destroy the bubbles"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.frozen-bubble.org"
|
|
license=('GPL2')
|
|
depends=('sdl_perl' 'perl-ipc-system-simple' 'perl-compress-bzip2' 'perl-file-which')
|
|
makedepends=('perl-file-slurp' 'perl-locale-maketext-lexicon')
|
|
options=('!emptydirs')
|
|
categories=('games')
|
|
source=("http://www.frozen-bubble.org/data/${pkgname}-${_pkgver}.tar.bz2"
|
|
'frozen-bubble.desktop')
|
|
md5sums=('825cc23ed806838b9d86de9982a5687a'
|
|
'3e0755836580e374e0911653f8cd33e2')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${_pkgver}"
|
|
unset CFLAGS
|
|
perl Build.PL installdirs=vendor
|
|
perl Build
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${_pkgver}"
|
|
perl Build install destdir="${pkgdir}" || return 1
|
|
|
|
install -D -m644 share/icons/frozen-bubble-icon-64x64.png "${pkgdir}/usr/share/pixmaps/frozen-bubble.png" || return 1
|
|
install -D -m644 "${srcdir}/frozen-bubble.desktop" "${pkgdir}/usr/share/applications/frozen-bubble.desktop" || return 1
|
|
|
|
find "${pkgdir}" -name '.packlist' -delete
|
|
find "${pkgdir}" -name '*.pod' -delete
|
|
|
|
# Move the binaries in the correct location...
|
|
for binary in 'fb-server' 'frozen-bubble' 'frozen-bubble-editor'; do
|
|
mv "${pkgdir}/usr/bin/vendor_perl/${binary}" "${pkgdir}/usr/bin/${binary}"
|
|
done
|
|
|
|
# ...and remove the wrong directory.
|
|
rm -rf "${pkgdir}/usr/bin/vendor_perl"
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|