untested. but this should work quite nicely

This commit is contained in:
brent s
2016-07-06 09:41:11 -04:00
parent 3e3069e73f
commit 7967ee7ab3
19 changed files with 255 additions and 122 deletions

View File

@@ -0,0 +1,18 @@
*/
.*.swp
*.pkg.tar.xz
src/
pkg/
*.tar
*.tar.bz2
*.tar.xz
*.tar.gz
*.tgz
*.txz
*.tbz
*.tbz2
*.zip
*.run
*.7z
*.rar
*.deb

View File

@@ -0,0 +1,2 @@
# Maintainer: %%MAINTNAME%%
validpgpkeys=('%%GPGKEY%%')

View File

@@ -0,0 +1,2 @@
# Bug reports can be filed at https://bugs.square-r00t.net/index.php?project=3
# News updates for packages can be followed at https://devblog.square-r00t.net

View File

@@ -0,0 +1,13 @@
pkgname=%%PKGNAME%%
pkgver=%%PKGVER%%
pkgrel=1
pkgdesc="%%PKGDESC%%"
arch=('i686' 'x86_64')
url="%%PKGURL%%"
license=('%%LICENSE%%')
depends=('%%PKGDEPS%%')
optdepends=('%%OPTDEPS%%')
makedepends=('%%BUILDDEPS%%')
_pkgname=%%PKGNAME%%
provides=("%%_PKGNAME%%")
#conflicts=("%%_PKGNAME%%")

View File

@@ -0,0 +1,7 @@
install=
changelog=
noextract=()
source=("%%SRCURL%%"
"%%SRCFILE%%.sig")
sha512sums=('cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e'
'SKIP')

View File

@@ -0,0 +1,4 @@
build() {
cd "${srcdir}/${_pkgname}/src"
make prefix=${pkgdir}/usr
}

View File

@@ -0,0 +1,4 @@
package() {
install -D -m755 ${srcdir}/${_pkgname}/src/${_pkgname} ${pkgdir}/usr/bin/${_pkgname}
install -D -m644 ${srcdir}/${_pkgname}/docs/README.html.en ${pkgdir}/usr/share/doc/${_pkgname}/README.html
}

View File

@@ -0,0 +1,2 @@
# Maintainer: %%MAINTNAME%%
validpgpkeys=('%%GPGKEY%%')

View File

@@ -0,0 +1,2 @@
# Bug reports can be filed at https://bugs.square-r00t.net/index.php?project=3
# News updates for packages can be followed at https://devblog.square-r00t.net

View File

@@ -0,0 +1,13 @@
pkgname=%%PKGNAME%%
pkgver=0.0000001
pkgrel=1
pkgdesc="%%PKGDESC%%"
arch=('i686' 'x86_64')
url="%%PKGURL%%"
license=('%%LICENSE%%')
depends=('%%PKGDEPS%%')
optdepends=('%%OPTDEPS%%')
makedepends=('%%BUILDDEPS%%')
_pkgname=%%_PKGNAME%%
provides=("%%_PKGNAME%%")
conflicts=("%%_PKGNAME%%")

View File

@@ -0,0 +1,6 @@
install=
changelog=
noextract=()
source=("%%SRCURL%%")
# see https://wiki.archlinux.org/index.php/VCS_package_guidelines#Git_Submodules if you require git submodules
sha512sums=('SKIP')

View File

@@ -0,0 +1,4 @@
pkgver() {
cd "${pkgname}"
printf "r%s" "$(bzr revno)"
}

View File

@@ -0,0 +1,18 @@
pkgver() {
cd "${srcdir}/${_pkgname}"
# no tags, so number of revisions e.g. r1142.a17a017
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
## most recent annotated tag e.g. 2.0.r6.ga17a017
#git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
## most recent un-annotated tag e.g. 0.71.r115.gd95ee07
#git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
## or:
##git describe --long --tags | sed 's/-/.r/;s/-/./'
## project uses tags with prefix. e.g. v...
#git describe --long | sed 's/^foo-//;s/\([^-]*-g\)/r\1/;s/-/./g'
## both with fallback, e.g. 0.9.9.r27.g2b039da with tags, else r1581.2b039da
#( set -o pipefail
# git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
#)
}

View File

@@ -0,0 +1,4 @@
pkgver() {
cd "${pkgname}"
printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}

View File

@@ -0,0 +1,5 @@
pkgver() {
cd "${pkgname}"
local ver="$(svnversion)"
printf "r%s" "${ver//[[:alpha:]]}"
}

View File

@@ -0,0 +1,4 @@
pkgver() {
cd "$pkgname"
printf "r%s" "$(bzr revno)"
}

View File

@@ -0,0 +1,4 @@
build() {
cd "${srcdir}/${_pkgname}/src"
make prefix=${pkgdir}/usr
}

View File

@@ -0,0 +1,4 @@
package() {
install -D -m755 ${srcdir}/${_pkgname}/src/${_pkgname} ${pkgdir}/usr/bin/${_pkgname}
install -D -m644 ${srcdir}/${_pkgname}/docs/README.html.en ${pkgdir}/usr/share/doc/${_pkgname}/README.html
}