diff options
Diffstat (limited to 'extra/sg3_utils')
-rw-r--r-- | extra/sg3_utils/PKGBUILD | 27 | ||||
-rw-r--r-- | extra/sg3_utils/stdint.patch | 22 |
2 files changed, 49 insertions, 0 deletions
diff --git a/extra/sg3_utils/PKGBUILD b/extra/sg3_utils/PKGBUILD new file mode 100644 index 000000000..eca1068a5 --- /dev/null +++ b/extra/sg3_utils/PKGBUILD @@ -0,0 +1,27 @@ +#$Id: PKGBUILD 109019 2011-02-05 11:24:51Z andyrtr $ +# Maintainer: Daniel Isenmann <daniel@archlinux.org> + +pkgname=sg3_utils +pkgver=1.30 +pkgrel=1 +pkgdesc="Generic SCSI utilities" +arch=(i686 x86_64) +url="http://sg.danny.cz/sg/sg3_utils.html" +license=('GPL' 'custom:BSD') +depends=('glibc') +options=('!libtool') +source=(http://sg.danny.cz/sg/p/${pkgname}-${pkgver}.tgz) +md5sums=('8acb9328abe17d012db8c5f95f1d7d75') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" + install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" +} diff --git a/extra/sg3_utils/stdint.patch b/extra/sg3_utils/stdint.patch new file mode 100644 index 000000000..8f8c5f581 --- /dev/null +++ b/extra/sg3_utils/stdint.patch @@ -0,0 +1,22 @@ +--- include/sg_cmds_basic.h 2008/06/26 23:27:40 1.1 ++++ include/sg_cmds_basic.h 2008/06/26 23:28:06 +@@ -30,6 +30,8 @@ + * + */ + ++#include <stdint.h> ++ + #ifdef __cplusplus + extern "C" { + #endif +--- include/sg_cmds_extra.h 2008/06/26 23:27:40 1.1 ++++ include/sg_cmds_extra.h 2008/06/26 23:29:02 +@@ -30,6 +30,8 @@ + * + */ + ++#include <stdint.h> ++ + #ifdef __cplusplus + extern "C" { + #endif |