blob: 47aaf97690884044f5614061175bea7041ea4cd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: eomanis at web dot de
pkgname='disk-test'
_pkgverUpstream="0.2.4"
pkgver="${_pkgverUpstream//-/.}"
pkgrel=1
pkgdesc="Block device read-write test utility written in bash"
arch=('any')
url='https://eomanis.duckdns.org/permshare/disk-test/'
license=('GPL3')
depends=('bash' 'coreutils' 'diffutils' 'grep' 'openssl' 'pv' 'sed' 'util-linux')
source=("https://eomanis.duckdns.org/permshare/disk-test/disk-test-${_pkgverUpstream}.tar.gz")
sha384sums=('fbc1d7bfa68ac88b0b122eca8192ef5721b37337c3df70194b2fb1eed0607257beeeb6d86249d4902c932f0eb1917b37')
package() {
local srcRootDir="${srcdir}/${pkgname}-${_pkgverUpstream}"
# Place the main bash script into /usr/bin
mkdir -p "${pkgdir}/usr/bin"
cd "${pkgdir}/usr/bin"
cp -t . "${srcRootDir}/disk-test"
chmod u=rwx,go=rx "disk-test"
# Gzip and place the manual page
mkdir -p "${pkgdir}/usr/share/man"
cd "${pkgdir}/usr/share/man"
mkdir "man1"
gzip --fast --to-stdout - < "${srcRootDir}/disk-test.1" > "man1/disk-test.1.gz"
chmod -R u=rwX,go=rX .
}
|