diff --git a/.SRCINFO b/.SRCINFO index 467c27950ebb..419ddadf3cfc 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -7,9 +7,7 @@ pkgbase = md5 arch = x86_64 license = custom source = http://www.fourmilab.ch/md5/md5.tar.gz - source = COPYING md5sums = c97245b84d45d6798f5f498f8a9a7c1e - md5sums = 7d811169878aefba828302d9a48f84de pkgname = md5 diff --git a/COPYING b/COPYING deleted file mode 100644 index 039f0d76c86c..000000000000 --- a/COPYING +++ /dev/null @@ -1,2 +0,0 @@ -(http://www.fourmilab.ch/md5/) -This software is in the public domain. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, without any conditions or restrictions. This software is provided "as is" without express or implied warranty. diff --git a/PKGBUILD b/PKGBUILD index 76384239cf70..83170244fd61 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -7,10 +7,8 @@ pkgdesc="An md5 hash printing utility, that can have files or strings as input" arch=('i686' 'x86_64') url="http://www.fourmilab.ch/md5/" license=('custom') -source=(http://www.fourmilab.ch/md5/$pkgname.tar.gz - COPYING) -md5sums=('c97245b84d45d6798f5f498f8a9a7c1e' - '7d811169878aefba828302d9a48f84de') +source=(http://www.fourmilab.ch/md5/$pkgname.tar.gz) +md5sums=('c97245b84d45d6798f5f498f8a9a7c1e') build() { cd "${srcdir}" @@ -20,7 +18,9 @@ build() { package() { cd "${srcdir}" - - install -Dm755 "$pkgname" "${pkgdir}/usr/bin/$pkgname" - install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/$pkgname/COPYING" + + install -Dm755 $pkgname "${pkgdir}"/usr/bin/$pkgname +#license + install -d "${pkgdir}"/usr/share/licenses/${pkgname}/ + sed '1,10p;d' main.c > "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE }