Package separately all scripts
This commit is contained in:
8
.SRCINFO
8
.SRCINFO
@@ -1,7 +1,7 @@
|
|||||||
pkgbase = sensible-utils
|
pkgbase = sensible-utils
|
||||||
pkgdesc = Utilities for sensible alternative selection
|
pkgdesc = Utilities for sensible alternative selection
|
||||||
pkgver = 0.0.17
|
pkgver = 0.0.17
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = http://packages.debian.org/source/sid/sensible-utils
|
url = http://packages.debian.org/source/sid/sensible-utils
|
||||||
arch = any
|
arch = any
|
||||||
license = GPL
|
license = GPL
|
||||||
@@ -11,4 +11,8 @@ pkgbase = sensible-utils
|
|||||||
source = http://ftp.debian.org/debian/pool/main/s/sensible-utils/sensible-utils_0.0.17+nmu1.tar.xz
|
source = http://ftp.debian.org/debian/pool/main/s/sensible-utils/sensible-utils_0.0.17+nmu1.tar.xz
|
||||||
sha256sums = a4ead62e0dc8f965453221dcb09c964abc4f1bedad24f527d33c443a1570cb31
|
sha256sums = a4ead62e0dc8f965453221dcb09c964abc4f1bedad24f527d33c443a1570cb31
|
||||||
|
|
||||||
pkgname = sensible-utils
|
pkgname = sensible-pager
|
||||||
|
|
||||||
|
pkgname = sensible-editor
|
||||||
|
|
||||||
|
pkgname = sensible-browser
|
||||||
|
|||||||
36
PKGBUILD
36
PKGBUILD
@@ -1,9 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
# Maintainer: Fredrick R. Brennan <copypaste@kittens.ph>
|
# Maintainer: Fredrick R. Brennan <copypaste@kittens.ph>
|
||||||
# Contributor: Brian BIdulock <bidulock@openss7.org>
|
# Contributor: Brian BIdulock <bidulock@openss7.org>
|
||||||
pkgname=sensible-utils
|
pkgbase=sensible-utils
|
||||||
|
pkgname=(sensible-pager sensible-editor sensible-browser)
|
||||||
pkgver=0.0.17
|
pkgver=0.0.17
|
||||||
_debianextra=+nmu1
|
_debianextra=+nmu1
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Utilities for sensible alternative selection"
|
pkgdesc="Utilities for sensible alternative selection"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="http://packages.debian.org/source/sid/sensible-utils"
|
url="http://packages.debian.org/source/sid/sensible-utils"
|
||||||
@@ -11,26 +13,46 @@ license=('GPL')
|
|||||||
depends=('bash')
|
depends=('bash')
|
||||||
makedepends=('po4a')
|
makedepends=('po4a')
|
||||||
checkdepends=('ed')
|
checkdepends=('ed')
|
||||||
source=(http://ftp.debian.org/debian/pool/main/s/$pkgname/${pkgname}_${pkgver}${_debianextra}.tar.xz)
|
source=(http://ftp.debian.org/debian/pool/main/s/$pkgbase/${pkgbase}_${pkgver}${_debianextra}.tar.xz)
|
||||||
sha256sums=('a4ead62e0dc8f965453221dcb09c964abc4f1bedad24f527d33c443a1570cb31')
|
sha256sums=('a4ead62e0dc8f965453221dcb09c964abc4f1bedad24f527d33c443a1570cb31')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${pkgname}-${pkgver}${_debianextra}
|
cd ${pkgbase}-${pkgver}${_debianextra}
|
||||||
export -n EDITOR VISUAL
|
export -n EDITOR VISUAL
|
||||||
./configure --prefix=/usr
|
./configure --prefix=/usr
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd ${pkgname}-${pkgver}${_debianextra}
|
cd ${pkgbase}-${pkgver}${_debianextra}
|
||||||
export -n EDITOR VISUAL
|
export -n EDITOR VISUAL
|
||||||
make -k check
|
make -k check
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
_package_sensible() {
|
||||||
cd ${pkgname}-${pkgver}${_debianextra}
|
cd ${pkgbase}-${pkgver}${_debianextra}
|
||||||
export -n EDITOR VISUAL
|
export -n EDITOR VISUAL
|
||||||
make DESTDIR="$pkgdir/" install
|
make DESTDIR="$pkgdir/" install
|
||||||
|
shopt -s globstar
|
||||||
|
cd $pkgdir
|
||||||
|
[[ $CURRENTLY_PACKAGING = sensible-utils ]] && return 0
|
||||||
|
find . -type f -and \( -not -iname "*$CURRENTLY_PACKAGING*" -and -not -name gettext \) | xargs rm -v
|
||||||
|
}
|
||||||
|
|
||||||
|
package_sensible-pager() {
|
||||||
|
CURRENTLY_PACKAGING=sensible-pager _package_sensible
|
||||||
|
}
|
||||||
|
|
||||||
|
package_sensible-browser() {
|
||||||
|
CURRENTLY_PACKAGING=sensible-browser _package_sensible
|
||||||
|
}
|
||||||
|
|
||||||
|
package_sensible-editor() {
|
||||||
|
CURRENTLY_PACKAGING=editor _package_sensible
|
||||||
|
}
|
||||||
|
|
||||||
|
package_sensible-utils() {
|
||||||
|
CURRENTLY_PACKAGING=sensible-utils _package_sensible
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 et:
|
# vim:set ts=2 sw=2 et:
|
||||||
|
|||||||
Reference in New Issue
Block a user