mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
44 lines
1.6 KiB
Bash
44 lines
1.6 KiB
Bash
#
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
|
|
pkgname=cryptsetup
|
|
pkgver=1.4.1
|
|
pkgrel=1
|
|
pkgdesc="Userspace setup tool for transparent encryption of block devices using the Linux 2.6 cryptoapi"
|
|
arch=(i686 x86_64)
|
|
license=('GPL')
|
|
url="http://code.google.com/p/cryptsetup/"
|
|
groups=('base')
|
|
depends=('device-mapper' 'libgcrypt' 'popt')
|
|
conflicts=('mkinitcpio<0.5.99')
|
|
options=('!libtool' '!emptydirs')
|
|
source=(http://cryptsetup.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2
|
|
http://cryptsetup.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2.asc
|
|
encrypt_hook
|
|
encrypt_install)
|
|
sha256sums=('82b143328c2b427ef2b89fb76c701d311c95b54093c21bbf22342f7b393bddcb'
|
|
'71c6506d4b6d0b22b9b6c2a68e604959e4c072af04680ed6acc0126c97bdbc88'
|
|
'811bbea1337106ad811731c746d73ee81039bad00aef52398e3a377ad0766757'
|
|
'd4380195351b70abf8fcb3cd19461879c55a7a07e4915d1f0365b295b112a573')
|
|
build() {
|
|
cd "${srcdir}"/$pkgname-${pkgver}
|
|
./configure --prefix=/usr --disable-static --sbindir=/sbin --libdir=/lib
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}"/$pkgname-${pkgver}
|
|
make DESTDIR="${pkgdir}" install
|
|
# install hook
|
|
install -D -m644 "${srcdir}"/encrypt_hook "${pkgdir}"/lib/initcpio/hooks/encrypt
|
|
install -D -m644 "${srcdir}"/encrypt_install "${pkgdir}"/lib/initcpio/install/encrypt
|
|
# Fix pkgconfig location
|
|
install -d -m755 "${pkgdir}"/usr/lib
|
|
mv "${pkgdir}"/lib/pkgconfig "${pkgdir}"/usr/lib/
|
|
}
|
|
|