From 50f1df7c882c8df966736d03a2acb00923258823 Mon Sep 17 00:00:00 2001 From: Neofytos Kolokotronis Date: Thu, 23 Feb 2017 17:21:25 +0100 Subject: [PATCH] dejagnu,diffstat,quilt,djvulibre,dpic,openbabel,elektra: moved from core to desktop, FS#1869 --- dejagnu/PKGBUILD | 31 +++++++++++++++++++++++++++++ dejagnu/dejagnu.install | 15 ++++++++++++++ diffstat/PKGBUILD | 26 ++++++++++++++++++++++++ djvulibre/PKGBUILD | 29 +++++++++++++++++++++++++++ dpic/PKGBUILD | 28 ++++++++++++++++++++++++++ dpic/dpic-2016.07.12-destdir.patch | 24 ++++++++++++++++++++++ elektra/PKGBUILD | 32 ++++++++++++++++++++++++++++++ openbabel/PKGBUILD | 32 ++++++++++++++++++++++++++++++ quilt/PKGBUILD | 27 +++++++++++++++++++++++++ 9 files changed, 244 insertions(+) create mode 100644 dejagnu/PKGBUILD create mode 100644 dejagnu/dejagnu.install create mode 100644 diffstat/PKGBUILD create mode 100644 djvulibre/PKGBUILD create mode 100644 dpic/PKGBUILD create mode 100644 dpic/dpic-2016.07.12-destdir.patch create mode 100644 elektra/PKGBUILD create mode 100644 openbabel/PKGBUILD create mode 100644 quilt/PKGBUILD diff --git a/dejagnu/PKGBUILD b/dejagnu/PKGBUILD new file mode 100644 index 000000000..fe8dee788 --- /dev/null +++ b/dejagnu/PKGBUILD @@ -0,0 +1,31 @@ + +pkgname=dejagnu +pkgver=1.5.3 +pkgrel=1 +pkgdesc="Framework for testing other programs" +arch=('any') +url="http://www.gnu.org/software/dejagnu/" +license=('GPL') +depends=('sh' 'expect') +install=dejagnu.install +source=("http://ftp.gnu.org/gnu/dejagnu/${pkgname}-${pkgver}.tar.gz") +md5sums=('5bda2cdb1af51a80aecce58d6e42bd2f') + + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr + make +} + +check() { + cd $srcdir/$pkgname-$pkgver + make check +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make -j1 DESTDIR="$pkgdir/" install +} diff --git a/dejagnu/dejagnu.install b/dejagnu/dejagnu.install new file mode 100644 index 000000000..0e3c430a0 --- /dev/null +++ b/dejagnu/dejagnu.install @@ -0,0 +1,15 @@ +infodir=usr/share/info + +post_install() { + [ -x usr/bin/install-info ] || return 0 + install-info $infodir/dejagnu.info.gz $infodir/dir 2> /dev/null +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + install-info --delete $infodir/dejagnu.info.gz $infodir/dir 2> /dev/null +} diff --git a/diffstat/PKGBUILD b/diffstat/PKGBUILD new file mode 100644 index 000000000..6386d6dd9 --- /dev/null +++ b/diffstat/PKGBUILD @@ -0,0 +1,26 @@ +#maintainer: Neophytos Kolokotronis + +pkgname=diffstat +pkgver=1.61 +pkgrel=1 +pkgdesc="Display a histogram of diff changes" +arch=('x86_64') +url="http://invisible-island.net/diffstat" +depends=('glibc') +license=('GPL') +source=(ftp://invisible-island.net/${pkgname}/${pkgname}-${pkgver}.tgz) +md5sums=('c048a32d55d8bd6724f382baf41f325f') + +build () { + cd "${srcdir}/${pkgname}-${pkgver}" + + ./configure --prefix=/usr \ + --mandir=/usr/share/man + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR=${pkgdir}/ install + install -Dm644 package/debian/copyright "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/djvulibre/PKGBUILD b/djvulibre/PKGBUILD new file mode 100644 index 000000000..ebc784ca7 --- /dev/null +++ b/djvulibre/PKGBUILD @@ -0,0 +1,29 @@ +pkgname=djvulibre +pkgver=3.5.27 +pkgrel=1 +pkgdesc="Suite to create, manipulate and view DjVu ('déjà vu') documents" +arch=("x86_64") +license=('GPL') +url="http://djvu.sourceforge.net/" +depends=('gcc-libs' 'libtiff' 'bash' 'hicolor-icon-theme') +makedepends=('librsvg') +provides=("libdjvu=${pkgver}") +source=("https://sourceforge.net/projects/djvu/files/DjVuLibre/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha1sums=('99c4f2c621c063bf8c8a1626030539fe5a8675f9') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr --disable-desktopfiles + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + + #Install icons for mime-types. + install -m755 -d ${pkgdir}/usr/share/icons/hicolor/{22x22,32x32,48x48,64x64}/mimetypes + for sz in 22 32 48 64; do + install -m644 desktopfiles/prebuilt-hi${sz}-djvu.png "${pkgdir}/usr/share/icons/hicolor/${sz}x${sz}/mimetypes/image-vnd.djvu.mime.png" + done +} diff --git a/dpic/PKGBUILD b/dpic/PKGBUILD new file mode 100644 index 000000000..95f26c42e --- /dev/null +++ b/dpic/PKGBUILD @@ -0,0 +1,28 @@ +pkgname=dpic +pkgver=2016.07.12 +pkgrel=1 +pkgdesc="A pic language interpreter" +arch=('x86_64') +url="http://www.ece.uwaterloo.ca/~aplevich/dpic/" +license=('BSD') +makedepends=('gcc') +source=("https://ece.uwaterloo.ca/~aplevich/dpic/dpic.tar.gz" + "dpic-$pkgver-destdir.patch") +sha256sums=('637f642d859a5ff0bd32143f987aeda861f669e080f21647839da23254d1cf72' + 'b1eae3c4a1cc8e4653231447ff46c905132586ca70039c09e0266ee5beff9fbf') + +prepare() { + cd $srcdir/$pkgname-$pkgver + patch -uNp1 -i $srcdir/dpic-$pkgver-destdir.patch +} + +build() { + cd $srcdir/$pkgname-$pkgver + ./configure --prefix=/usr + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir/usr install +} diff --git a/dpic/dpic-2016.07.12-destdir.patch b/dpic/dpic-2016.07.12-destdir.patch new file mode 100644 index 000000000..ab2551761 --- /dev/null +++ b/dpic/dpic-2016.07.12-destdir.patch @@ -0,0 +1,24 @@ +diff -Naur old/Makefile.in new/Makefile.in +--- old/Makefile.in 2016-08-01 18:03:57.000000000 +0200 ++++ new/Makefile.in 2016-08-19 19:13:07.482021830 +0200 +@@ -3,8 +3,8 @@ + PREFIX = . + DEST = ${DESTDIR}/${PREFIX}/bin + +-MANDIR = /usr/share/man/man1 +-DOCDIR = /usr/share/doc/dpic ++MANDIR = ${DESTDIR}/${PREFIX}/share/man/man1 ++DOCDIR = ${DESTDIR}/${PREFIX}/share/doc/dpic + + #----------------------------------------------------------------------- + +@@ -33,7 +33,7 @@ + + install: installdpic installdocs + +-installdpic: dpic doc/dpicdoc.pdf ++installdpic: dpic + mkdir -p $(DEST) + if test -x dpic.exe ; then \ + strip dpic.exe; install dpic.exe $(DEST) ; \ + diff --git a/elektra/PKGBUILD b/elektra/PKGBUILD new file mode 100644 index 000000000..0ab1c5d3b --- /dev/null +++ b/elektra/PKGBUILD @@ -0,0 +1,32 @@ +# maintainer abveritas[at]chakra-project[dot]org> + +pkgname=elektra +pkgver=0.8.9 +pkgrel=1 +pkgdesc="Elektra is a universal hierarchical configuration store" +url="http://www.libelektra.org/" +license="BSD" +arch=('x86_64') +depends=('libxml2' 'doxygen') +makedepends=('docbook-xsl' 'texlive-latexextra') +source=("ftp://ftp.libelektra.org/elektra/releases/$pkgname-$pkgver.tar.gz") +md5sums=('001c4ec67229046509a0cb9eda223dc6') + +prepare() { + cd ${srcdir}/$pkgname-$pkgver + [[ -e build ]] && rm -rf build + mkdir build +} + +build() { + cd ${srcdir}/$pkgname-$pkgver/build + + cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. + make +} + +package() { + cd ${srcdir}/$pkgname-$pkgver/build + + make DESTDIR=${pkgdir} install +} diff --git a/openbabel/PKGBUILD b/openbabel/PKGBUILD new file mode 100644 index 000000000..e299c1e1f --- /dev/null +++ b/openbabel/PKGBUILD @@ -0,0 +1,32 @@ +# +# Chakra Packages for Chakra, part of chakra-project.org +# +# maintainer : abveritas@chakra-project.org + +pkgname=openbabel +pkgver=2.3.1 +pkgrel=1 +pkgdesc="Open, collaborative project allowing anyone to search, convert, analyze, or store data from molecular modeling, chemistry, solid-state materials, biochemistry, or related areas" +arch=('i686' 'x86_64') +url="http://openbabel.sourceforge.net/" +license=('GPL') +depends=('gcc-libs' 'libxml2' 'eigen') +makedepends=('cmake') +options=('!libtool') +source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz") +md5sums=('1f029b0add12a3b55582dc2c832b04f8') + +build() { + cd "${srcdir}" + mkdir build + cd build + cmake ../${pkgname}-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd "${srcdir}/build" + make DESTDIR="${pkgdir}" install +} diff --git a/quilt/PKGBUILD b/quilt/PKGBUILD new file mode 100644 index 000000000..2e54a465c --- /dev/null +++ b/quilt/PKGBUILD @@ -0,0 +1,27 @@ +#maintainer: Neophytos Kolokotronis +#contributions from Arch: https://www.archlinux.org/packages/community/any/quilt/ +pkgname=quilt +pkgver=0.60 +pkgrel=1 +pkgdesc='Manage a series of patches by keeping track of the changes each patch makes' +arch=('x86_64') +url='http://savannah.nongnu.org/projects/quilt' +license=('GPL2') +depends=('diffstat' 'gawk' 'patch' 'diffutils' 'gettext') +source=("http://savannah.nongnu.org/download/quilt/${pkgname}-${pkgver}.tar.gz") +md5sums=('058a08a9b626bdec9ec8c519dc92158c') + +build() { + cd ${pkgname}-${pkgver} + ./configure --prefix=/usr --mandir=/usr/share/man --without-rpmbuild + make +} + +package() { + cd ${pkgname}-${pkgver} + make prefix="$pkgdir/usr" mandir="$pkgdir/usr/share/man" install + # move bash completion in right place + install -d -m 755 "$pkgdir/usr/share/bash-completion" + mv "$pkgdir/etc/bash_completion.d" "$pkgdir/usr/share/bash-completion/completions" +} +