cpio: new package
Add header (maintainer name, email) Replace hardcoded version with pkgver variable
This commit is contained in:
32
cpio/PKGBUILD
Normal file
32
cpio/PKGBUILD
Normal file
@@ -0,0 +1,32 @@
|
||||
# Maintainer: Eon Jeong <administrator@korea.ac.kr>
|
||||
|
||||
pkgname=cpio
|
||||
pkgver=2.12
|
||||
pkgrel=1
|
||||
pkgdesc="cpio - copy files to/from archives"
|
||||
arch=('i686' 'x86_64')
|
||||
url="https://www.gnu.org/software/cpio/"
|
||||
license=('GPLv3')
|
||||
depends=('libintl')
|
||||
makedepends=('gettext-devel')
|
||||
options=('staticlibs')
|
||||
source=(http://ftp.gnu.org/pub/gnu/cpio/cpio-${pkgver}.tar.gz)
|
||||
sha256sums=('08a35e92deb3c85d269a0059a27d4140a9667a6369459299d08c17f713a92e73')
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/${pkgname}-${pkgver}
|
||||
|
||||
./configure --prefix=/usr
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${srcdir}/${pkgname}-${pkgver}
|
||||
|
||||
make DESTDIR=${pkgdir} install
|
||||
|
||||
# remove rmt
|
||||
rm -rf ${pkgdir}/usr/libexec
|
||||
rm -rf ${pkgdir}/usr/share/man/man8
|
||||
}
|
||||
Reference in New Issue
Block a user