summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Bidulock2014-07-08 03:09:22 -0600
committerBrian Bidulock2015-06-10 22:07:53 -0600
commitf8e7f3eb07e6f180bacb68edc59810d000962101 (patch)
treef7facb07f90b7f1e28304f88d1f9a9d5aa30d0d5
parent971c300d84e2ad398425e10227649b0efc25aa59 (diff)
downloadaur-f8e7f3eb07e6f180bacb68edc59810d000962101.tar.gz
version 5.4.7-6
-rw-r--r--.AURINFO19
-rw-r--r--.SRCINFO16
-rw-r--r--[-rwxr-xr-x]PKGBUILD61
3 files changed, 63 insertions, 33 deletions
diff --git a/.AURINFO b/.AURINFO
new file mode 100644
index 00000000000..81cb69f0094
--- /dev/null
+++ b/.AURINFO
@@ -0,0 +1,19 @@
+pkgbase = vtwm
+ pkgdesc = A lightweight, customizable window manager with a virtual desktop
+ pkgver = 5.4.7
+ pkgrel = 6
+ url = http://www.vtwm.org
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = imake
+ depends = libxpm
+ depends = libxmu
+ depends = flex
+ depends = rplay
+ source = http://www.vtwm.org/downloads/vtwm-5.4.7.tar.gz
+ source = vtwm.desktop
+ backup = usr/share/X11/vtwm/system.vtwmrc
+
+pkgname = vtwm
+
diff --git a/.SRCINFO b/.SRCINFO
index 000ecd716ce..3140a671018 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,21 @@
pkgbase = vtwm
- pkgdesc = A lightweght, customizable window manager with a virtual desktop
+ pkgdesc = A lightweight, customizable window manager with a virtual desktop
pkgver = 5.4.7
- pkgrel = 5
+ pkgrel = 6
url = http://www.vtwm.org
arch = i686
arch = x86_64
- license = custom
+ license = MIT
makedepends = imake
- makedepends = bison
- makedepends = flex
depends = libxpm
depends = libxmu
- depends = m4
- options = !makeflags
- backup = etc/X11/vtwm/system.vtwmrc
+ depends = flex
+ depends = rplay
+ backup = usr/share/X11/vtwm/system.vtwmrc
source = http://www.vtwm.org/downloads/vtwm-5.4.7.tar.gz
+ source = vtwm.desktop
md5sums = 707f8d93b19b46fb3d036053be66288b
+ md5sums = 7b4fcabdd4cf2b3a03683c37cb0fa82b
pkgname = vtwm
diff --git a/PKGBUILD b/PKGBUILD
index b4fa6e41fe5..e21883bdc2f 100755..100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,33 +1,44 @@
+# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: David Scholl <djscholl@gmail.com>
+
pkgname=vtwm
pkgver=5.4.7
-pkgrel=5
-pkgdesc="A lightweght, customizable window manager with a virtual desktop"
+pkgrel=6
+pkgdesc="A lightweight, customizable window manager with a virtual desktop"
arch=('i686' 'x86_64')
url="http://www.vtwm.org"
-license=('custom')
-depends=('libxpm' 'libxmu' 'm4')
-makedepends=('imake' 'bison' 'flex')
-backup=('etc/X11/vtwm/system.vtwmrc')
-options=('!makeflags')
-source=(http://www.vtwm.org/downloads/$pkgname-$pkgver.tar.gz)
-md5sums=('707f8d93b19b46fb3d036053be66288b')
+license=('MIT')
+depends=('libxpm' 'libxmu' 'flex' 'rplay')
+makedepends=('imake')
+backup=('usr/share/X11/vtwm/system.vtwmrc')
+source=("http://www.vtwm.org/downloads/${pkgname}-${pkgver}.tar.gz"
+ "vtwm.desktop")
+md5sums=('707f8d93b19b46fb3d036053be66288b'
+ '7b4fcabdd4cf2b3a03683c37cb0fa82b')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ (
+ head -n 26 add_window.c
+ head -n 20 applets.c
+ head -n 18 desktop.c
+ head -n 22 sound.c
+ cat contrib/nexpm/xpm.COPYRIGHT
+
+ ) >COPYRIGHT
+}
build() {
- cd $startdir/src/$pkgname-$pkgver
- sed -i '/^XCOMM NO_SOUND_SUPPORT/s/^XCOMM//' Imakefile || return 1
- sed -i '/^SOUNDLIB/s//XCOMM SOUNDLIB/' Imakefile || return 1
- sed -i '/^SOUNDINC/s//XCOMM SOUNDINC/' Imakefile || return 1
- sed -i '/VTWMLIBDIR/s/$(LIBDIR)\/twm/\/etc\/X11\/vtwm/' Imakefile || return 1
- xmkmf || return 1
- make || return 1
- make DESTDIR=$startdir/pkg install || return 1
- mkdir -p $startdir/pkg/usr/share/licenses/$pkgname
- head -n 26 add_window.c > $startdir/pkg/usr/share/licenses/$pkgname/EH_MIT
- head -n 20 applets.c > $startdir/pkg/usr/share/licenses/$pkgname/MIT
- head -n 18 desktop.c > $startdir/pkg/usr/share/licenses/$pkgname/DE_ICSTM
- head -n 24 gram.c > $startdir/pkg/usr/share/licenses/$pkgname/Bison_GPL
- head -n 22 sound.c > $startdir/pkg/usr/share/licenses/$pkgname/DJHJ
- cp contrib/nexpm/xpm.COPYRIGHT $startdir/pkg/usr/share/licenses/$pkgname/
- chmod 644 $startdir/pkg/usr/share/licenses/$pkgname/*
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ xmkmf
+ make CFLAGS="$CFLAGS" \
+ LDOPTIONS="$LDFLAGS" \
+ VTWMLIBDIR=/usr/share/X11/vtwm
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make VTWMLIBDIR=/usr/share/X11/vtwm DESTDIR="${pkgdir}" install
+ install -Dm0644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT"
+ install -Dm0644 ../vtwm.desktop "${pkgdir}/usr/share/xsessions/vtwm.desktop"
}