Commit 50f1df7c authored by Neofytos Kolokotronis's avatar Neofytos Kolokotronis

dejagnu,diffstat,quilt,djvulibre,dpic,openbabel,elektra: moved from core to desktop, FS#1869

parent 19cc1619
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
}
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
}
#maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
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"
}
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
}
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 -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) ; \
# 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
}
#
# 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
}
#maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
#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"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment