initial import
This commit is contained in:
51
parted/PKGBUILD
Normal file
51
parted/PKGBUILD
Normal file
@@ -0,0 +1,51 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=parted
|
||||
pkgver=3.5
|
||||
_debver=$pkgver
|
||||
_debrel=3
|
||||
pkgrel=1
|
||||
pkgdesc="A program for creating, destroying, resizing, checking and copying partitions"
|
||||
arch=('i686' 'x86_64')
|
||||
license=('GPL-3')
|
||||
url='https://www.gnu.org/software/parted/parted.html'
|
||||
depends=('device-mapper' 'libutil-linux')
|
||||
makedepends=('pkg-config' 'quilt')
|
||||
source=("https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz"
|
||||
"https://deb.debian.org/debian/pool/main/p/${pkgname}/${pkgname}_${_debver}-${_debrel}.debian.tar.xz")
|
||||
sha512sums=('87fc69e947de5f0b670ee5373a7cdf86180cd782f6d7280f970f217f73f55ee1b1b018563f48954f3a54fdde5974b33e07eee68c9ccdf08e621d3dc0e3ce126a'
|
||||
'2308e3f954219dafa08517860d62b24d4059bd6c549a4042f089a3c9009e8a558ff551b1b29cfcc0dca063774e4d8a201450bfb74e3fc3e288d8f5f152d09a61')
|
||||
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
||||
# Debian patches
|
||||
export QUILT_PATCHES=debian/patches
|
||||
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
||||
export QUILT_DIFF_ARGS='--no-timestamps'
|
||||
|
||||
mv "$srcdir"/debian .
|
||||
|
||||
quilt push -av
|
||||
fi
|
||||
autoreconf
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
|
||||
# Do *not* add --disable-debug, it prevents building fatresize
|
||||
# https://github.com/ya-mouse/fatresize/issues/9
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--disable-rpath
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
|
||||
make DESTDIR="${pkgdir}" install
|
||||
install -Dm644 COPYING -t $pkgdir/usr/share/licenses/$pkgname
|
||||
}
|
||||
Reference in New Issue
Block a user