Package Details: libdes 4.04b-4

Git Clone URL: (read-only)
Package Base: libdes
Description: library for DES encryption
Upstream URL:
Licenses: custom
Submitter: jose1711
Maintainer: jose1711
Last Packager: jose1711
Votes: 8
Popularity: 0.472462
First Submitted: 2009-12-23 17:50
Last Updated: 2016-02-27 13:29

Latest Comments

jose1711 commented on 2016-02-27 13:29

hope i got it right this time

thse commented on 2016-02-27 12:54

it works!

but I had to add the lines (see post from 2010-07-04)

# des_crypt.3.gz is already contained in man_pages
rm $pkgdir/usr/share/man/man3/des_crypt.3

to the "package()" section in "PKGBUILD" to avoid conflicting man pages.

jose1711 commented on 2016-02-26 20:35

@thse: thank you, pushed. could you please verify?

thse commented on 2016-02-26 20:09

On my 64-bit system I couldn't decrypt files, which I encrypted on a 32-bit system. And "destest" failed on every test. After switching to 4-byte unsigned integers everything works. Here is the patch:

> diff -u des.h.orig des.h

--- des.h.orig 1997-12-04 14:35:37.000000000 +0100
+++ des.h 2016-02-26 20:59:52.396114542 +0100
@@ -72,11 +72,14 @@

#include <stdio.h>
+#include <stdint.h>

/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
* %20 speed up (longs are 8 bytes, int's are 4). */
+/* On PCs with 64-bit Linux 'unsigned long' doesn't work, 'destest'
+ * fails. 'unsigned int' oder 'uint32_t' is needed. */
#ifndef DES_LONG
-#define DES_LONG unsigned long
+#define DES_LONG uint32_t

typedef unsigned char des_cblock[8];

jose1711 commented on 2010-07-04 08:18

thank you, i did a few adjustments (added package() as recommended by new makepkg) and commited

Anonymous comment on 2010-07-04 04:48

or watch it in pastebin:

Anonymous comment on 2010-07-04 04:32

try this:

pkgdesc="library for DES encryption"

build() {
cd $srcdir
make gcc || return 1
mkdir -p $pkgdir/usr/lib
mkdir -p $pkgdir/usr/bin
mkdir -p $pkgdir/usr/include
mkdir -p $pkgdir/usr/share/man/man1
mkdir -p $pkgdir/usr/share/man/man3
make LIBDIR=$pkgdir/usr/lib BINDIR=$pkgdir/usr/bin INCDIR=$pkgdir/usr/include MANDIR=$pkgdir/usr/share/man install || return 1
# des_crypt.3.gz is already contained in man_pages
rm $pkgdir/usr/share/man/man3/des_crypt.3

Anonymous comment on 2010-07-04 02:54

seems they don't provide svn any more. instead, you can download the source from