From c930801e02b8c4f493e874dc3b47d2a39e6c9ba8 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Fri, 3 Jun 2016 08:13:01 +0200 Subject: [PATCH] pkgutils: added overlayed port for the pine64 device --- pkgutils/.footprint | 21 +++++++++++++++++++++ pkgutils/.md5sum | 2 ++ pkgutils/Pkgfile | 18 ++++++++++++++++++ pkgutils/pkgmk.conf.patch | 14 ++++++++++++++ 4 files changed, 55 insertions(+) create mode 100644 pkgutils/.footprint create mode 100644 pkgutils/.md5sum create mode 100644 pkgutils/Pkgfile create mode 100644 pkgutils/pkgmk.conf.patch diff --git a/pkgutils/.footprint b/pkgutils/.footprint new file mode 100644 index 0000000..675aac2 --- /dev/null +++ b/pkgutils/.footprint @@ -0,0 +1,21 @@ +drwxr-xr-x root/root etc/ +-rw-r--r-- root/root etc/pkgadd.conf +-rw-r--r-- root/root etc/pkgmk.conf +-rw-r--r-- root/root etc/rejmerge.conf +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/pkgadd +lrwxrwxrwx root/root usr/bin/pkginfo -> pkgadd +-rwxr-xr-x root/root usr/bin/pkgmk +lrwxrwxrwx root/root usr/bin/pkgrm -> pkgadd +-rwxr-xr-x root/root usr/bin/rejmerge +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man5/ +-rw-r--r-- root/root usr/share/man/man5/pkgmk.conf.5.gz +drwxr-xr-x root/root usr/share/man/man8/ +-rw-r--r-- root/root usr/share/man/man8/pkgadd.8.gz +-rw-r--r-- root/root usr/share/man/man8/pkginfo.8.gz +-rw-r--r-- root/root usr/share/man/man8/pkgmk.8.gz +-rw-r--r-- root/root usr/share/man/man8/pkgrm.8.gz +-rw-r--r-- root/root usr/share/man/man8/rejmerge.8.gz diff --git a/pkgutils/.md5sum b/pkgutils/.md5sum new file mode 100644 index 0000000..33aeae0 --- /dev/null +++ b/pkgutils/.md5sum @@ -0,0 +1,2 @@ +ddb9b504e314b5f24965365308494fee pkgmk.conf.patch +5f4ba23340492548ebf58b0ce7109e69 pkgutils-5.35.6.tar.gz diff --git a/pkgutils/Pkgfile b/pkgutils/Pkgfile new file mode 100644 index 0000000..7a01d44 --- /dev/null +++ b/pkgutils/Pkgfile @@ -0,0 +1,18 @@ +# Description: A set of utilities to manage software packages +# URL: http://crux.nu/gitweb/?p=tools/pkgutils.git +# Maintainer: CRUX System Team, core-ports at crux dot nu +# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu +# Depends on: libarchive + +name=pkgutils +version=5.35.6 +release=1 +source=(http://crux.nu/files/$name-$version.tar.gz \ + pkgmk.conf.patch) + +build () { + cd $name-$version + patch -p0 -i $SRC/pkgmk.conf.patch + sed -i -e "s|\--static||g" -e "s|\-static||g" Makefile + make DESTDIR=$PKG install MANDIR=/usr/share/man +} diff --git a/pkgutils/pkgmk.conf.patch b/pkgutils/pkgmk.conf.patch new file mode 100644 index 0000000..b818d04 --- /dev/null +++ b/pkgutils/pkgmk.conf.patch @@ -0,0 +1,14 @@ +--- pkgmk.conf.orig 2014-10-16 15:59:34.057394811 +0000 ++++ pkgmk.conf 2014-10-16 16:00:18.437371591 +0000 +@@ -2,9 +2,8 @@ + # /etc/pkgmk.conf: pkgmk(8) configuration + # + +-export CFLAGS="-O2 -march=x86-64 -pipe" +-export CXXFLAGS="${CFLAGS}" +- ++export CFLAGS="-O2 -pipe -march=armv8-a -mtune=cortex-a53" ++export CXXFLAGS="$CFLAGS" + # export MAKEFLAGS="-j2" + + case ${PKGMK_ARCH} in -- 2.26.2