summaryrefslogtreecommitdiff
path: root/community/cdcd
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-09-22 12:03:57 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-09-22 12:03:57 -0300
commit0830ec32f40473e1a83ec7e12be11daabf6d2762 (patch)
treed2929aa2fd3c63af741f9862575025734f785aba /community/cdcd
parentc02976460621a16b172e3e33432d5790f3ed6117 (diff)
parentb7f839da11975b9f2a964a82d591b7a8628f0931 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/pppd-ldap/PKGBUILD gnome-unstable/at-spi2-atk/PKGBUILD gnome-unstable/at-spi2-core/PKGBUILD gnome-unstable/atk/PKGBUILD gnome-unstable/folks/PKGBUILD gnome-unstable/gnome-bluetooth/PKGBUILD gnome-unstable/gnome-contacts/PKGBUILD gnome-unstable/gnome-control-center/PKGBUILD gnome-unstable/libwebkit/PKGBUILD gnome-unstable/nautilus/PKGBUILD gnome-unstable/totem/PKGBUILD
Diffstat (limited to 'community/cdcd')
-rw-r--r--community/cdcd/PKGBUILD29
-rw-r--r--community/cdcd/cdcd.install20
2 files changed, 37 insertions, 12 deletions
diff --git a/community/cdcd/PKGBUILD b/community/cdcd/PKGBUILD
index bf57afc89..57338fc35 100644
--- a/community/cdcd/PKGBUILD
+++ b/community/cdcd/PKGBUILD
@@ -1,28 +1,33 @@
-# $Id: PKGBUILD 52061 2009-09-14 22:50:09Z giovanni $
+# $Id: PKGBUILD 55773 2011-09-20 06:44:34Z andrea $
# Maintainer: dorphell <dorphell@archlinux.org>
-#contributor Sarah Hay <sarahhay@mb.sympatico.ca>
+# Contributor Sarah Hay <sarahhay@mb.sympatico.ca>
pkgname=cdcd
pkgver=0.6.6
-pkgrel=5
+pkgrel=6
pkgdesc="A commandline cd-player"
arch=('i686' 'x86_64' 'mips64el')
depends=('libcdaudio' 'readline')
-source=(http://downloads.sourceforge.net/sourceforge/libcdaudio/$pkgname-$pkgver.tar.gz
- cdcd-0.6.6-x86_64.patch)
url="http://libcdaudio.sourceforge.net/"
license=('GPL2')
+install=cdcd.install
+source=("http://downloads.sourceforge.net/libcdaudio/$pkgname-$pkgver.tar.gz"
+ cdcd-0.6.6-x86_64.patch)
md5sums=('dc17f2e275c7214cb693f6abb50f29fb'
'7c39f01408fc084e2c62da4da324370e')
build() {
- cd $startdir/src/$pkgname-$pkgver
- patch -Np1 -i ${srcdir}/cdcd-0.6.6-x86_64.patch
+ cd "${srcdir}"/$pkgname-$pkgver
+ patch -Np1 -i "${srcdir}"/cdcd-0.6.6-x86_64.patch
./configure --prefix=/usr
- make || return 1
- make prefix=$startdir/pkg/usr install
+ make
+}
+
+package() {
+ cd "${srcdir}"/$pkgname-$pkgver
+ make prefix="${pkgdir}"/usr install
- install -dm755 ${pkgdir}/usr/share
- mv ${pkgdir}/usr/{man,info} ${pkgdir}/usr/share
- rm ${pkgdir}/usr/share/info/dir
+ install -dm755 "${pkgdir}"/usr/share
+ mv "${pkgdir}"/usr/{man,info} "${pkgdir}"/usr/share
+ rm "${pkgdir}"/usr/share/info/dir
}
diff --git a/community/cdcd/cdcd.install b/community/cdcd/cdcd.install
new file mode 100644
index 000000000..e859c40b7
--- /dev/null
+++ b/community/cdcd/cdcd.install
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=(cdcd.info.gz)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}