summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhang Hai2018-03-11 18:20:38 -0700
committerZhang Hai2018-03-11 18:20:38 -0700
commitcf6d228bf52e0b9bc56003f5f7c1e2059148fb66 (patch)
tree9b91b267cdb682b6e17afa66fcf1792f975ecbc9
parent58ad3739dd4e936839f9a70454f251d093decb92 (diff)
downloadaur-cf6d228bf52e0b9bc56003f5f7c1e2059148fb66.tar.gz
Fix missing build(), use recommended versioning and bump epoch.
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD29
2 files changed, 24 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d5efacb6025..5012a83446f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,10 @@
+# Generated by mksrcinfo v8
+# Mon Mar 12 01:20:18 UTC 2018
pkgbase = danmaku2ass-git
pkgdesc = Convert comments from Niconico/AcFun/bilibili to ASS format
- pkgver = 20140615
+ pkgver = r214.3dd20e4
pkgrel = 1
+ epoch = 1
url = https://github.com/m13253/danmaku2ass
arch = any
license = GPL3
@@ -9,8 +12,8 @@ pkgbase = danmaku2ass-git
depends = python>=3
provides = danmaku2ass
conflicts = danmaku2ass
- source = danmaku2ass::git://github.com/m13253/danmaku2ass.git
- md5sums = SKIP
+ source = danmaku2ass::git+https://github.com/m13253/danmaku2ass.git
+ sha256sums = SKIP
pkgname = danmaku2ass-git
diff --git a/PKGBUILD b/PKGBUILD
index 5aeeca7ebfe..3f4ccc0a27c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,33 @@
-# PKGBUILD file for Arch Linux packaging
+# Maintainer: Zhang Hai <dreaming.in.code.zh@gmail.com>
# Contributor: Star Brilliant <echo bTEzMjUzQGhvdG1haWwuY29tCg== | base64 -d>
-pkgname=danmaku2ass-git
-pkgver=20140615
+_pkgname=danmaku2ass
+pkgname="${_pkgname}-git"
+pkgver=r214.3dd20e4
pkgrel=1
+epoch=1
pkgdesc="Convert comments from Niconico/AcFun/bilibili to ASS format"
arch=('any')
url="https://github.com/m13253/danmaku2ass"
license=('GPL3')
depends=('python>=3')
makedepends=('git')
-provides=('danmaku2ass')
-conflicts=('danmaku2ass')
-source=('danmaku2ass::git://github.com/m13253/danmaku2ass.git')
-md5sums=('SKIP')
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+source=("${_pkgname}::git+https://github.com/m13253/danmaku2ass.git")
+sha256sums=('SKIP')
pkgver() {
- cd "$srcdir/danmaku2ass"
- git log -1 --format="%cd" --date=short | tr -d -
+ cd "${srcdir}/${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+ make
}
package() {
- cd "$srcdir/danmaku2ass"
- make install DESTDIR="$pkgdir" PREFIX=/usr
+ cd "${srcdir}/${_pkgname}"
+ make install DESTDIR="${pkgdir}" PREFIX='/usr'
}