Skip to content

Instantly share code, notes, and snippets.

@bremac
Last active August 29, 2015 14:13
Show Gist options
  • Save bremac/650f2ed3ff69965e1d42 to your computer and use it in GitHub Desktop.
Save bremac/650f2ed3ff69965e1d42 to your computer and use it in GitHub Desktop.
xfstk PKGBUILD
--- CMakeLists.txt.orig 2015-01-07 20:18:48.958380053 -0800
+++ CMakeLists.txt 2015-01-07 20:18:58.771691779 -0800
@@ -95,6 +95,3 @@
# Assemble the SDK
INCLUDE(BuildSDK)
-# Package the software.
-INCLUDE(buildPackages)
-
# Maintainer: Artem Grunichev <[email protected]>
# Contributor: Brendan MacDonell <[email protected]>
pkgname=xfstk
pkgver=1.7.3
pkgrel=2
pkgdesc="Updater for Intel SoC firmware over USB using the DNX protocol"
arch=('i686' 'x86_64')
url="http://xfstk.sourceforge.net"
license=('LGPL')
groups=('devel')
depends=('boost-libs' 'libusb-compat' 'qt4')
optdepends=('flashrom: BayTrail platform support')
makedepends=('boost' 'cmake' 'doxygen')
source=("http://sourceforge.net/projects/xfstk/files/xfstk-dldr-linux-source-${pkgver}.tar.gz/download"
"custom-packaging.diff")
sha1sums=('aac912e989ac448057353799428c7ad7a9174c80'
'2e4b283a485eb4cc3b598d95e93835c251269dc0')
build() {
cd "${srcdir}/${pkgname}-build/linux-source-package"
patch -p0 -i "${srcdir}/custom-packaging.diff"
BUILD_VERSION="${pkgver}" cmake -Wno-dev -DCMAKE_INSTALL_PREFIX=/usr .
make
}
package() {
cd "${srcdir}/${pkgname}-build/linux-source-package"
make DESTDIR="${pkgdir}" prefix="${pkgdir}" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment