summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mauderer2018-04-01 21:28:40 +0200
committerChristian Mauderer2018-04-01 21:28:40 +0200
commitec9a2cc01b1b5d148482460d916606ea93969763 (patch)
tree5a5c5ece215b63492daae52bf92a17b93a4d2fb0
downloadaur-ec9a2cc01b1b5d148482460d916606ea93969763.tar.gz
Create packet. Based on the non-git obs-service-format_spec_file.
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD24
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f12a66f1286
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = obs-service-format_spec_file-git
+ pkgdesc = An OBS source service: reformats a spec file to SUSE standard
+ pkgver = r120.402059d
+ pkgrel = 1
+ url = https://github.com/openSUSE/obs-service-format_spec_file
+ arch = any
+ license = GPL2
+ makedepends = git
+ depends = obs-service-source_validator
+ depends = perl-timedate
+ provides = obs-service-format_spec_file
+ conflicts = obs-service-format_spec_file
+ source = obs-service-format_spec_file::git+https://github.com/openSUSE/obs-service-format_spec_file
+ sha256sums = SKIP
+
+pkgname = obs-service-format_spec_file-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d13a5879b4a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+_servicename=format_spec_file
+pkgname=obs-service-${_servicename}-git
+pkgver=r120.402059d
+pkgrel=1
+pkgdesc='An OBS source service: reformats a spec file to SUSE standard'
+arch=('any')
+url='https://github.com/openSUSE/obs-service-format_spec_file'
+license=('GPL2')
+depends=('obs-service-source_validator' 'perl-timedate')
+makedepends=('git')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=("${pkgname%-git}::git+https://github.com/openSUSE/${pkgname%-git}")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd "${srcdir}/${pkgname%-git}"
+ make DESTDIR=$pkgdir install
+}