summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Bidulock2016-08-18 15:40:51 -0600
committerBrian Bidulock2016-08-18 15:40:51 -0600
commit2ad69a4179500c7ec574b83f32a93b023c3950b6 (patch)
tree5427af62cb4629bbf8b94d3362ab3ce42e30f158
downloadaur-ascd.tar.gz
initial version
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD47
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e398bcefcab
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = ascd
+ pkgdesc = A CD play that can be docked with Afterstep and Window Maker
+ pkgver = 0.13.2
+ pkgrel = 1
+ url = http://www.dockapps.net/ascd
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = libxpm
+ source = http://www.dockapps.net/download/ascd-0.13.2+lib-src.tgz
+ md5sums = SKIP
+
+pkgname = ascd
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..17d76f32d6b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Brian Bidulock <bidulock@openss7.org>
+
+pkgname=ascd
+pkgver=0.13.2
+pkgrel=1
+pkgdesc="A CD play that can be docked with Afterstep and Window Maker"
+arch=('i686' 'x86_64')
+url="http://www.dockapps.net/ascd"
+license=('GPL')
+depends=('libxpm')
+source=("http://www.dockapps.net/download/${pkgname}-${pkgver}+lib-src.tgz")
+md5sums=('SKIP')
+
+prepare() {
+ cd ${pkgname}-${pkgver}+lib-src
+ sed -i -e 's,bytesex.h,cdio/bytesex.h,;t' \
+ ascd/workman/wm_cdda.h \
+ libworkman/include/wm_cdda.h
+ sed -i -e '/InstallMultiple/s,(THEMESDIR),(THEMESDIR)/themes-manual.ps.gz,;t' \
+ ascd/Imakefile
+ sed -i -e '/^install::/,$s,\$(THEMESDIR),$(DESTDIR)/$(THEMESDIR),' \
+ ascd/Imakefile
+ sed -i -e 's,read CDD,CDD="",;t' \
+ ascd/configure
+ sed -i -e 's,read BINDIR,BINDIR="/usr/bin",;t' \
+ ascd/configure
+ sed -i -e 's,read MANDIR,MANDIR="/usr/share/man/man1",;t' \
+ ascd/configure
+ sed -i -e 's,read THDIR,THDIR="/usr/share/AScd",;t' \
+ ascd/configure
+ sed -i -e 's,read WINGS,WINGS="2",;t' \
+ ascd/configure
+ ./configure
+}
+
+build() {
+ cd ${pkgname}-${pkgver}+lib-src
+ make CCOPTIONS="-fPIC" EXTRA_INCLUDES="-I."
+}
+
+package() {
+ cd ${pkgname}-${pkgver}+lib-src
+ make DESTDIR="$pkgdir" install install.man
+ cd libworkman
+ make LIBDIR="/usr/lib" DESTDIR="$pkgdir" install
+ chown -R root.root "$pkgdir/usr/share/AScd"
+}